|
23 | 23 | "gendeps:exp": "../../scripts/exp/extract-deps.sh --types ./exp-types/index.d.ts --bundle ./dist/exp/tmp.js --output ./exp/dependencies.json",
|
24 | 24 | "pregendeps:lite" : "node scripts/build-bundle.js --input ./lite/index.ts --output ./dist/lite/tmp.js",
|
25 | 25 | "gendeps:lite": "../../scripts/exp/extract-deps.sh --types ./lite-types/index.d.ts --bundle ./dist/lite/tmp.js --output ./lite/dependencies.json",
|
| 26 | + "test:lite": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'lite/test/**/*.test.ts' --require ts-node/register --file lite/index.ts --config ../../config/mocharc.node.js", |
| 27 | + "test:lite:browser": "karma start --single-run --lite", |
| 28 | + "test:lite:browser:debug": "karma start --single-run --lite --auto-watch", |
26 | 29 | "test:exp": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/integration/api/*.test.ts' --file exp/index.ts --config ../../config/mocharc.node.js",
|
27 | 30 | "test:exp:persistence": "USE_MOCK_PERSISTENCE=YES TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/integration/api/*.test.ts' --require ts-node/register --require exp/index.ts --require test/util/node_persistence.ts --config ../../config/mocharc.node.js",
|
| 31 | + "test:exp:browser": "karma start --single-run --exp", |
| 32 | + "test:exp:browser:debug": "karma start --single-run --exp --auto-watch", |
28 | 33 | "test": "run-s lint test:all",
|
29 | 34 | "test:ci": "node ../../scripts/run_tests_in_ci.js",
|
30 |
| - "test:all": "run-p test:browser test:travis test:minified test:exp test:lite", |
| 35 | + "test:all": "run-p test:browser test:lite:browser test:exp:browser test:travis test:minified test:exp test:lite", |
31 | 36 | "test:browser": "karma start --single-run",
|
32 | 37 | "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
|
33 | 38 | "test:node": "FIRESTORE_EMULATOR_PORT=8080 FIRESTORE_EMULATOR_PROJECT_ID=test-emulator TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js",
|
|
36 | 41 | "test:node:persistence:prod": "USE_MOCK_PERSISTENCE=YES TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --require ts-node/register --require index.node.ts --require test/util/node_persistence.ts --config ../../config/mocharc.node.js",
|
37 | 42 | "test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
|
38 | 43 | "test:minified": "(cd ../../integration/firestore ; yarn test)",
|
39 |
| - "test:lite": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'lite/test/**/*.test.ts' --require ts-node/register --file lite/index.ts --config ../../config/mocharc.node.js", |
40 | 44 | "prepare": "yarn build:release"
|
41 | 45 | },
|
42 | 46 | "main": "dist/index.node.cjs.js",
|
|
0 commit comments