Skip to content

Commit cd9f1aa

Browse files
authored
Fix yarn test (#3909)
1 parent cfbf48e commit cd9f1aa

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
run: |
148148
# TODO: Reduce the ignored patterns to only /dist/, /test/unit/ and
149149
# /test/integration/ by making the other tests actually pass.
150-
yarn test --passWithNoTests $(echo $CHANGED_PACKAGES | jq '.[].location' -r | tr '\n' ' ') --testPathIgnorePatterns="$(echo $CHANGED_PACKAGES | jq --raw-output 'map(.location | . + "/dist/|" + . + "/test/unit/|" + . + "/test/integration") | join("|")')|/test/e2e/|/test/transports/|packages/scripts/src/docker-build/|packages/scripts/src/schema-flatten/|packages/scripts/src/generate-image-name/|packages/scripts/src/flux-emulator/|packages/k6/src/"
150+
yarn test --passWithNoTests $(echo $CHANGED_PACKAGES | jq '.[].location + "/"' -r | tr '\n' ' ') --testPathIgnorePatterns="$(echo $CHANGED_PACKAGES | jq --raw-output 'map(.location | . + "/dist/|" + . + "/test/unit/|" + . + "/test/integration") | join("|")')|/test/e2e/|/test/transports/|packages/scripts/src/docker-build/|packages/scripts/src/schema-flatten/|packages/scripts/src/generate-image-name/|packages/scripts/src/flux-emulator/|packages/k6/src/"
151151
152152
# Run linters
153153
linters:

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"format:fix": "prettier --write .",
1919
"setup": "tsc -b ./packages/tsconfig.json",
2020
"setup-tests": "tsc -b ./packages/tsconfig.test.json",
21-
"test": "./packages/scripts/src/run-test/run-test.sh",
22-
"test:unit": "./packages/scripts/src/run-test/run-test.sh unit",
23-
"test:integration": "./packages/scripts/src/run-test/run-test.sh integration",
24-
"test:ci:unit": "./packages/scripts/src/run-test/run-test.sh --coverage unit",
25-
"test:ci:integration": "./packages/scripts/src/run-test/run-test.sh --coverage integration",
21+
"test": "EA_PORT=0 METRICS_ENABLED=false jest",
22+
"test:unit": "jest unit",
23+
"test:integration": "EA_PORT=0 METRICS_ENABLED=false jest integration",
24+
"test:ci:unit": "METRICS_ENABLED=false jest --coverage unit",
25+
"test:ci:integration": "EA_PORT=0 METRICS_ENABLED=false jest --coverage integration",
2626
"generate:docker-compose": "METRICS_ENABLED=false ts-node-transpile-only ./packages/scripts/src/docker-build",
2727
"generate:gha:matrix": "METRICS_ENABLED=false ts-node-transpile-only ./packages/scripts/src/gha",
2828
"generate:healthcheck:payloads": "ts-node-transpile-only ./packages/scripts/src/healthchecks",

packages/scripts/src/run-test/run-test.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)