Skip to content

Commit c02cafd

Browse files
committed
fixes
1 parent ed40d7d commit c02cafd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,17 @@ jobs:
3535
- name: Install dependencies
3636
run: yarn install --frozen-lockfile
3737

38-
- name: Run unit tests
39-
run: yarn test:unit
38+
- name: Run lib unit tests
39+
run: yarn test:lib:unit
40+
41+
- name: Run cli unit tests
42+
run: yarn test:cli:unit
43+
44+
- name: Run server unit tests
45+
run: yarn test:server:unit
46+
47+
- name: Run postgres-server unit tests
48+
run: yarn test:pg-server:unit
4049

4150
- name: Run integration tests
4251
run: yarn test:integration

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@
1919
"build": "yarn clean && yarn build:lib && yarn build:cli && yarn build:server && yarn build:pg-server",
2020
"build:references": "tsc --build",
2121
"test": "jest",
22+
"test:unit": "yarn test:lib:unit && yarn test:cli:unit && yarn test:server:unit && yarn test:pg-server:unit",
23+
"test:integration": "jest --testMatch='**/*.integration.test.ts'",
2224
"test:lib": "cd packages/lib && yarn test",
2325
"test:lib:unit": "cd packages/lib && yarn test:unit",
2426
"test:lib:integration": "cd packages/lib && yarn test:integration",
2527
"test:cli": "cd packages/cli && yarn test",
28+
"test:cli:unit": "cd packages/cli && jest tests/",
2629
"test:server": "cd packages/server && yarn test",
30+
"test:server:unit": "cd packages/server && jest tests/",
2731
"test:pg-server": "cd packages/postgres-server && yarn test",
32+
"test:pg-server:unit": "cd packages/postgres-server && jest tests/unit/",
2833
"test:all": "yarn test:lib && yarn test:cli && yarn test:server && yarn test:pg-server",
2934
"typecheck": "cd packages/lib && npx tsc --noEmit && cd ../cli && npx tsc --noEmit && cd ../server && npx tsc --noEmit && cd ../postgres-server && npx tsc --noEmit",
3035
"lint": "eslint --ext .ts packages/*/src",

0 commit comments

Comments
 (0)