Skip to content

Commit

Permalink
Build dist before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Apr 15, 2024
1 parent 2118c2a commit 91d414e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
- run: npm i -g [email protected]
- run: npm ci
- run: npm run lint:changed-files
- run: npm run lint
working-directory: firebase-vscode

unit:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion firebase-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"test-compile": "npm run copyfiles && webpack --config src/test/webpack.test.js",
"lint": "eslint src --ext ts",
"test": "npm run test:unit && npm run test:e2e",
"pretest:unit": "npm run test-compile && npm run lint && tsc -p src/test/tsconfig.test.json",
"pretest:unit": "npm run test-compile && npm run build && tsc -p src/test/tsconfig.test.json",
"test:unit": "node ./dist/test/firebase-vscode/src/test/runTest.js",
"test:e2e": "TS_NODE_PROJECT=\"./src/test/tsconfig.test.json\" wdio run ./src/test/wdio.conf.ts"
},
Expand Down

0 comments on commit 91d414e

Please sign in to comment.