Skip to content

Commit 821b471

Browse files
authored
ci: fix vitest not found on windows-latest workflow
1 parent db8a00a commit 821b471

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@ jobs:
2626
run: sfw npm install --no-package-lock
2727

2828
- name: Run unit tests
29-
run: |
30-
$env:PATH="$PWD\node_modules\.bin;$env:PATH"
31-
npm run test
32-
shell: pwsh
29+
run: npm run test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"build": "tsc -b",
1616
"watch": "tsc -b --watch",
1717
"lint": "eslint .",
18-
"test": "vitest run",
19-
"test:e2e": "vitest run --config vitest.e2e.config.ts"
18+
"test": "npx vitest run",
19+
"test:e2e": "npx vitest run --config vitest.e2e.config.ts"
2020
},
2121
"author": "Automate The Planet",
2222
"license": "Apache-2.0",

0 commit comments

Comments
 (0)