mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
222 lines
6.1 KiB
JSON
222 lines
6.1 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible Node.js debug attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "AI Unit Tests (node)",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/ai",
|
|
"args": [
|
|
"--require",
|
|
"ts-node/register",
|
|
"--require",
|
|
"src/index.node.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"'src/**/!(*-browser)*.test.ts"
|
|
],
|
|
"env": {
|
|
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"name": "AI Integration Tests (node)",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/ai",
|
|
"args": [
|
|
"--require",
|
|
"ts-node/register",
|
|
"--require",
|
|
"src/index.node.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"integration/**/*.test.ts",
|
|
"--grep",
|
|
"${input:grepString}"
|
|
],
|
|
"env": {
|
|
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Prune .d.ts",
|
|
"program": "${workspaceRoot}/repo-scripts/prune-dts/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/repo-scripts/prune-dts",
|
|
"args": [
|
|
"--require",
|
|
"ts-node/register",
|
|
"--timeout",
|
|
"5000",
|
|
"${workspaceFolder}/repo-scripts/prune-dts/*.test.ts"
|
|
],
|
|
"env": {
|
|
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "RTDB Unit Tests (Node)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/database",
|
|
"args": [
|
|
"test/{,!(browser)/**/}*.test.ts",
|
|
"--file",
|
|
"src/index.node.ts",
|
|
"--config",
|
|
"../../config/mocharc.node.js"
|
|
],
|
|
"env": {
|
|
"TS_NODE_FILES": true,
|
|
"TS_NODE_CACHE": "NO",
|
|
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Unit Tests (Node)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": [
|
|
"--require",
|
|
"babel-register.js",
|
|
"--require",
|
|
"src/index.node.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"test/{,!(browser|integration)/**/}*.test.ts",
|
|
"--exit"
|
|
],
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Unit Tests (Node / Persistence)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": [
|
|
"--require",
|
|
"babel-register.js",
|
|
"--require",
|
|
"index.node.ts",
|
|
"--require",
|
|
"test/util/node_persistence.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"test/{,!(browser|integration)/**/}*.test.ts",
|
|
"--exit"
|
|
],
|
|
"env": {
|
|
"USE_MOCK_PERSISTENCE": "YES"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Integration Tests (Node)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": [
|
|
"--require",
|
|
"babel-register.js",
|
|
"--require",
|
|
"index.node.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"test/{,!(browser|unit)/**/}*.test.ts",
|
|
"--exit"
|
|
],
|
|
"env": {
|
|
"FIRESTORE_TARGET_BACKEND": "emulator"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Integration Tests (Node / Persistence)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": [
|
|
"--require",
|
|
"babel-register.js",
|
|
"--require",
|
|
"index.node.ts",
|
|
"--require",
|
|
"test/util/node_persistence.ts",
|
|
"--timeout",
|
|
"5000",
|
|
"test/{,!(browser|unit)/**/}*.test.ts",
|
|
"--exit"
|
|
],
|
|
"env": {
|
|
"USE_MOCK_PERSISTENCE": "YES",
|
|
"FIRESTORE_TARGET_BACKEND": "emulator"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"name": "Firestore Enterprise Lite Tests",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeArgs": ["-r", "ts-node/register"],
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"program": "${workspaceRoot}/packages/firestore/scripts/run-tests.ts",
|
|
"args": [
|
|
"--platform",
|
|
"node_lite",
|
|
"--main=lite/index.ts",
|
|
"test/lite/**/*.test.ts",
|
|
"--grep",
|
|
"${input:grepString}"
|
|
],
|
|
"env": {
|
|
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}",
|
|
"FIRESTORE_TARGET_BACKEND": "nightly",
|
|
"FIRESTORE_TARGET_DB_ID": "enterprise",
|
|
"RUN_ENTERPRISE_TESTS": "true"
|
|
},
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Unit Tests (Browser)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/karma",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": ["start", "--auto-watch", "--unit", "--browsers", "Chrome"]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Firestore Integration Tests (Browser)",
|
|
"program": "${workspaceRoot}/node_modules/.bin/karma",
|
|
"cwd": "${workspaceRoot}/packages/firestore",
|
|
"args": ["start", "--auto-watch", "--integration", "--browsers", "Chrome"]
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "grepString",
|
|
"type": "promptString",
|
|
"description": "Enter grep pattern (e.g., 'Google AI gemini-2.0-flash generateContent')",
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|