Skip to content

Commit 2e25576

Browse files
committed
run integration tests separately
1 parent def0a59 commit 2e25576

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Diff for: apps/server/.mocharc.integration.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extension": ["ts"],
3+
"require": "ts-node/register",
4+
"spec": "test/integration/**/*.spec.ts",
5+
"timeout": 35000
6+
}

Diff for: apps/server/.mocharc.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"extension": ["ts"],
33
"require": "ts-node/register",
44
"spec": "test/**/*.spec.ts",
5+
"ignore": ["test/integration/**/*"],
56
"timeout": 35000
67
}

Diff for: apps/server/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "tsc -p tsconfig.build.json",
88
"debug": "nodemon --watch 'src/**/*.ts' --ignore 'src/**/*.spec.ts' --exec node --inspect -r ts-node/register ./src/server.ts",
99
"start": "NODE_ENV=production ts-node -T src/server.ts",
10-
"test": "nyc mocha"
10+
"test": "nyc mocha",
11+
"integration-test": "nyc mocha --config .mocharc.integration.json"
1112
},
1213
"repository": {
1314
"type": "git",

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:server": "pnpm nx build @overture-stack/lectern-server",
1111
"build:client": "pnpm nx build @overture-stack/lectern-client",
1212
"test:all": "pnpm nx run-many --all --target=test",
13+
"integration-test:all": "pnpm nx run-many --all --target=integration-test",
1314
"test:dictionary": "pnpm nx test @overture-stack/lectern-dictionary",
1415
"test:validation": "pnpm nx test @overture-stack/lectern-validation",
1516
"test:server": "pnpm nx test @overture-stack/lectern-server",

0 commit comments

Comments
 (0)