|  | 
| 4 | 4 |   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | 
| 5 | 5 |   "version": "0.2.0", | 
| 6 | 6 |   "configurations": [ | 
|  | 7 | +    { | 
|  | 8 | +      "name": "AI Unit Tests (node)", | 
|  | 9 | +      "type": "node", | 
|  | 10 | +      "request": "launch", | 
|  | 11 | +      "program": "${workspaceFolder}/node_modules/.bin/_mocha", | 
|  | 12 | +      "cwd": "${workspaceRoot}/packages/vertexai", | 
|  | 13 | +      "args": [ | 
|  | 14 | +        "--require", | 
|  | 15 | +        "ts-node/register", | 
|  | 16 | +        "--require", | 
|  | 17 | +        "src/index.node.ts", | 
|  | 18 | +        "--timeout", | 
|  | 19 | +        "5000", | 
|  | 20 | +        "src/**/*.test.ts" | 
|  | 21 | +      ], | 
|  | 22 | +      "env": { | 
|  | 23 | +        "TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" | 
|  | 24 | +      }, | 
|  | 25 | +      "sourceMaps": true | 
|  | 26 | +    }, | 
| 7 | 27 |     { | 
| 8 | 28 |       "type": "node", | 
| 9 | 29 |       "request": "launch", | 
|  | 
| 18 | 38 |         "${workspaceFolder}/repo-scripts/prune-dts/*.test.ts" | 
| 19 | 39 |       ], | 
| 20 | 40 |       "env": { | 
| 21 |  | -        "TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}" | 
|  | 41 | +        "TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" | 
| 22 | 42 |       }, | 
| 23 |  | -      "sourceMaps": true, | 
|  | 43 | +      "sourceMaps": true | 
| 24 | 44 |     }, | 
| 25 | 45 |     { | 
| 26 | 46 |       "type": "node", | 
|  | 
| 30 | 50 |       "cwd": "${workspaceRoot}/packages/database", | 
| 31 | 51 |       "args": [ | 
| 32 | 52 |         "test/{,!(browser)/**/}*.test.ts", | 
| 33 |  | -        "--file", "src/index.node.ts", | 
| 34 |  | -        "--config", "../../config/mocharc.node.js", | 
|  | 53 | +        "--file", | 
|  | 54 | +        "src/index.node.ts", | 
|  | 55 | +        "--config", | 
|  | 56 | +        "../../config/mocharc.node.js" | 
| 35 | 57 |       ], | 
| 36 | 58 |       "env": { | 
| 37 |  | -        "TS_NODE_FILES":true, | 
|  | 59 | +        "TS_NODE_FILES": true, | 
| 38 | 60 |         "TS_NODE_CACHE": "NO", | 
| 39 |  | -        "TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}" | 
|  | 61 | +        "TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" | 
| 40 | 62 |       }, | 
| 41 |  | -      "sourceMaps": true, | 
| 42 |  | -      "protocol": "inspector" | 
|  | 63 | +      "sourceMaps": true | 
| 43 | 64 |     }, | 
| 44 | 65 |     { | 
| 45 | 66 |       "type": "node", | 
|  | 
| 48 | 69 |       "program": "${workspaceRoot}/node_modules/.bin/_mocha", | 
| 49 | 70 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 50 | 71 |       "args": [ | 
| 51 |  | -        "--require", "babel-register.js", | 
| 52 |  | -        "--require", "src/index.node.ts", | 
| 53 |  | -        "--timeout", "5000", | 
|  | 72 | +        "--require", | 
|  | 73 | +        "babel-register.js", | 
|  | 74 | +        "--require", | 
|  | 75 | +        "src/index.node.ts", | 
|  | 76 | +        "--timeout", | 
|  | 77 | +        "5000", | 
| 54 | 78 |         "test/{,!(browser|integration)/**/}*.test.ts", | 
| 55 | 79 |         "--exit" | 
| 56 | 80 |       ], | 
| 57 |  | -      "sourceMaps": true, | 
| 58 |  | -      "protocol": "inspector" | 
|  | 81 | +      "sourceMaps": true | 
| 59 | 82 |     }, | 
| 60 | 83 |     { | 
| 61 | 84 |       "type": "node", | 
|  | 
| 64 | 87 |       "program": "${workspaceRoot}/node_modules/.bin/_mocha", | 
| 65 | 88 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 66 | 89 |       "args": [ | 
| 67 |  | -        "--require", "babel-register.js", | 
| 68 |  | -        "--require", "index.node.ts", | 
| 69 |  | -        "--require", "test/util/node_persistence.ts", | 
| 70 |  | -        "--timeout", "5000", | 
|  | 90 | +        "--require", | 
|  | 91 | +        "babel-register.js", | 
|  | 92 | +        "--require", | 
|  | 93 | +        "index.node.ts", | 
|  | 94 | +        "--require", | 
|  | 95 | +        "test/util/node_persistence.ts", | 
|  | 96 | +        "--timeout", | 
|  | 97 | +        "5000", | 
| 71 | 98 |         "test/{,!(browser|integration)/**/}*.test.ts", | 
| 72 | 99 |         "--exit" | 
| 73 | 100 |       ], | 
| 74 | 101 |       "env": { | 
| 75 | 102 |         "USE_MOCK_PERSISTENCE": "YES" | 
| 76 | 103 |       }, | 
| 77 |  | -      "sourceMaps": true, | 
| 78 |  | -      "protocol": "inspector" | 
|  | 104 | +      "sourceMaps": true | 
| 79 | 105 |     }, | 
| 80 | 106 |     { | 
| 81 | 107 |       "type": "node", | 
|  | 
| 84 | 110 |       "program": "${workspaceRoot}/node_modules/.bin/_mocha", | 
| 85 | 111 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 86 | 112 |       "args": [ | 
| 87 |  | -        "--require", "babel-register.js", | 
| 88 |  | -        "--require", "index.node.ts", | 
| 89 |  | -        "--timeout", "5000", | 
|  | 113 | +        "--require", | 
|  | 114 | +        "babel-register.js", | 
|  | 115 | +        "--require", | 
|  | 116 | +        "index.node.ts", | 
|  | 117 | +        "--timeout", | 
|  | 118 | +        "5000", | 
| 90 | 119 |         "test/{,!(browser|unit)/**/}*.test.ts", | 
| 91 | 120 |         "--exit" | 
| 92 | 121 |       ], | 
| 93 | 122 |       "env": { | 
| 94 |  | -        "FIRESTORE_TARGET_BACKEND" : "emulator", | 
|  | 123 | +        "FIRESTORE_TARGET_BACKEND": "emulator" | 
| 95 | 124 |       }, | 
| 96 |  | -      "sourceMaps": true, | 
| 97 |  | -      "protocol": "inspector" | 
|  | 125 | +      "sourceMaps": true | 
| 98 | 126 |     }, | 
| 99 | 127 |     { | 
| 100 | 128 |       "type": "node", | 
|  | 
| 103 | 131 |       "program": "${workspaceRoot}/node_modules/.bin/_mocha", | 
| 104 | 132 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 105 | 133 |       "args": [ | 
| 106 |  | -        "--require", "babel-register.js", | 
| 107 |  | -        "--require", "index.node.ts", | 
| 108 |  | -        "--require", "test/util/node_persistence.ts", | 
| 109 |  | -        "--timeout", "5000", | 
|  | 134 | +        "--require", | 
|  | 135 | +        "babel-register.js", | 
|  | 136 | +        "--require", | 
|  | 137 | +        "index.node.ts", | 
|  | 138 | +        "--require", | 
|  | 139 | +        "test/util/node_persistence.ts", | 
|  | 140 | +        "--timeout", | 
|  | 141 | +        "5000", | 
| 110 | 142 |         "test/{,!(browser|unit)/**/}*.test.ts", | 
| 111 | 143 |         "--exit" | 
| 112 | 144 |       ], | 
| 113 | 145 |       "env": { | 
| 114 | 146 |         "USE_MOCK_PERSISTENCE": "YES", | 
| 115 |  | -        "FIRESTORE_TARGET_BACKEND" : "emulator", | 
|  | 147 | +        "FIRESTORE_TARGET_BACKEND": "emulator" | 
| 116 | 148 |       }, | 
| 117 |  | -      "sourceMaps": true, | 
| 118 |  | -      "protocol": "inspector" | 
|  | 149 | +      "sourceMaps": true | 
| 119 | 150 |     }, | 
| 120 | 151 |     { | 
| 121 | 152 |       "type": "node", | 
| 122 | 153 |       "request": "launch", | 
| 123 | 154 |       "name": "Firestore Unit Tests (Browser)", | 
| 124 | 155 |       "program": "${workspaceRoot}/node_modules/.bin/karma", | 
| 125 | 156 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 126 |  | -      "args": [ | 
| 127 |  | -        "start", | 
| 128 |  | -        "--auto-watch", | 
| 129 |  | -        "--unit", | 
| 130 |  | -        "--browsers", "Chrome" | 
| 131 |  | -      ] | 
|  | 157 | +      "args": ["start", "--auto-watch", "--unit", "--browsers", "Chrome"] | 
| 132 | 158 |     }, | 
| 133 | 159 |     { | 
| 134 | 160 |       "type": "node", | 
| 135 | 161 |       "request": "launch", | 
| 136 | 162 |       "name": "Firestore Integration Tests (Browser)", | 
| 137 | 163 |       "program": "${workspaceRoot}/node_modules/.bin/karma", | 
| 138 | 164 |       "cwd": "${workspaceRoot}/packages/firestore", | 
| 139 |  | -      "args": [ | 
| 140 |  | -        "start", | 
| 141 |  | -        "--auto-watch", | 
| 142 |  | -        "--integration", | 
| 143 |  | -        "--browsers", "Chrome" | 
| 144 |  | -      ] | 
|  | 165 | +      "args": ["start", "--auto-watch", "--integration", "--browsers", "Chrome"] | 
| 145 | 166 |     } | 
| 146 | 167 |   ] | 
| 147 | 168 | } | 
0 commit comments