Skip to content

Commit a65536d

Browse files
Blake JacksonBlake Jackson
Blake Jackson
authored and
Blake Jackson
committed
REVERT ME: Changed jest to only test gateway requires. Added vscode debugger config."
1 parent e11c08a commit a65536d

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.vscode/launch.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Jest All",
8+
"program": "${workspaceFolder}/node_modules/.bin/jest",
9+
"args": ["--runInBand"],
10+
"console": "integratedTerminal",
11+
"internalConsoleOptions": "neverOpen",
12+
"disableOptimisticBPs": true,
13+
"windows": {
14+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
15+
}
16+
},
17+
{
18+
"type": "node",
19+
"request": "launch",
20+
"name": "Jest Current File",
21+
"program": "${workspaceFolder}/node_modules/.bin/jest",
22+
"args": [
23+
"${fileBasenameNoExtension}",
24+
"--config",
25+
"jest.config.js"
26+
],
27+
"console": "integratedTerminal",
28+
"internalConsoleOptions": "neverOpen",
29+
"disableOptimisticBPs": true,
30+
"windows": {
31+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
32+
}
33+
}
34+
]
35+
}

jest.config.base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
],
88
preset: "ts-jest",
99
testMatch: null,
10-
testRegex: "/__tests__/.*\\.test\\.(js|ts)$",
10+
testRegex: "/apollo-gateway/src/__tests__/integration/requires\\.test\\.(js|ts)$",
1111
testPathIgnorePatterns: [
1212
"/node_modules/",
1313
"/dist/"

0 commit comments

Comments
 (0)