Skip to content

Commit

Permalink
Use relative path to ts-node in test script
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Nov 26, 2024
1 parent 120fc69 commit b5010fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ jobs:
path: ./ui/node_modules
key: "${{ runner.os }}-node_modules-${{ env.NODE_VERSION }}-${{ hashFiles('./ui/package-lock.json') }}"
- name: Run tests
run: cd ui && npm run test
run: |
cd ui
npm run test
lint-ui:
Expand All @@ -138,7 +140,9 @@ jobs:
path: ./ui/node_modules
key: "${{ runner.os }}-node_modules-${{ env.NODE_VERSION }}-${{ hashFiles('./ui/package-lock.json') }}"
- name: Run lint
run: cd ui && npm run lint
run: |
cd ui
npm run lint
install-api:
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"check": "npm run check:src && npm run check:tests",
"check:src": "tsc -p tsconfig.json --noEmit",
"check:tests": "tsc -p tsconfig.test.json --noEmit",
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json node --loader ts-node/esm --experimental-specifier-resolution=node node_modules/mocha/bin/mocha -- --transpile-only --exit",
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json node --loader ./node_modules/ts-node/esm.mjs --experimental-specifier-resolution=node node_modules/mocha/bin/mocha -- --transpile-only --exit",
"e2e": "start-server-and-test start http-get://localhost:8000 cypress:run",
"cypress:open": "cypress open",
"cypress:run": "./scripts/cypress_run",
Expand Down

0 comments on commit b5010fa

Please sign in to comment.