|
8 | 8 | "type": "node",
|
9 | 9 | "request": "launch",
|
10 | 10 | "name": "Firestore Unit Tests (Node)",
|
11 |
| - "program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js", |
12 |
| - "args": ["test", "--suite=firestore/unit/", "--env=node"], |
13 |
| - "port": 9229, |
| 11 | + "program": "${workspaceRoot}/packages/firestore/node_modules/.bin/_mocha", |
| 12 | + "cwd": "${workspaceRoot}/packages/firestore", |
| 13 | + "args": [ |
| 14 | + "--compilers", "ts:ts-node/register", |
| 15 | + "-r", "src/platform_node/node_init.ts", |
| 16 | + "--retries", "5", |
| 17 | + "--timeout", "5000", |
| 18 | + "test/{,!(integration|browser)/**/}*.test.ts" |
| 19 | + ], |
| 20 | + "sourceMaps": true, |
14 | 21 | "protocol": "inspector"
|
15 | 22 | },
|
16 | 23 | {
|
17 | 24 | "type": "node",
|
18 | 25 | "request": "launch",
|
19 | 26 | "name": "Firestore Unit Tests (Browser)",
|
20 |
| - "program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js", |
21 |
| - "args": ["test", "--suite=firestore/unit/", "--env=browser", "--debug"] |
| 27 | + "program": "${workspaceRoot}/packages/firestore/node_modules/.bin/karma", |
| 28 | + "cwd": "${workspaceRoot}/packages/firestore", |
| 29 | + "args": [ |
| 30 | + "start", |
| 31 | + "--auto-watch", |
| 32 | + "--testFiles", "test/unit/bootstrap.ts", |
| 33 | + "--browsers", "Chrome" |
| 34 | + ] |
22 | 35 | },
|
23 | 36 | {
|
24 | 37 | "type": "node",
|
25 | 38 | "request": "launch",
|
26 | 39 | "name": "Firestore Integration Tests (Browser)",
|
27 |
| - "program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js", |
28 |
| - "args": ["test", "--suite=firestore/integration", "--env=browser", "--debug"] |
| 40 | + "program": "${workspaceRoot}/packages/firestore/node_modules/.bin/karma", |
| 41 | + "cwd": "${workspaceRoot}/packages/firestore", |
| 42 | + "args": [ |
| 43 | + "start", |
| 44 | + "--auto-watch", |
| 45 | + "--testFiles", "test/integration/bootstrap.ts", |
| 46 | + "--browsers", "Chrome" |
| 47 | + ] |
29 | 48 | }
|
30 | 49 | ]
|
31 | 50 | }
|
0 commit comments