Skip to content

Commit 99f0bdb

Browse files
committed
Configure CI to run only unit tests
- Add test:unit and test:integration npm scripts - Update GitHub Actions to run npm run test:unit instead of npm test - Separates fast unit tests (405 passing) from integration tests that require API keys - Integration tests can still be run locally with npm run test:integration
1 parent 818575a commit 99f0bdb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Install dependencies
3131
run: npm ci
3232

33-
- name: Run tests
34-
run: npm test
33+
- name: Run unit tests
34+
run: npm run test:unit
3535
env:
3636
CI: true
3737

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"build:watch": "tsc --watch",
3333
"copy-browser": "copyfiles -u 2 \"src/cli/browser/**/*\" dist/cli",
3434
"test": "jest",
35+
"test:unit": "jest tests/unittests",
36+
"test:integration": "jest tests/integration",
3537
"lint": "eslint src --ext .ts",
3638
"format": "prettier --write \"src/**/*.ts\"",
3739
"start": "ts-node src/index.ts",

0 commit comments

Comments
 (0)