Skip to content

Commit

Permalink
Run integration tests on Node.js. (#4494)
Browse files Browse the repository at this point in the history
* Run integration tests on Node.js.

* Update packages-exp/auth-exp/test/helpers/integration/helpers.ts
  • Loading branch information
yuchenshi committed Feb 22, 2021
1 parent 168f1d6 commit 145c62b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages-exp/auth-exp/package.json
Expand Up @@ -31,7 +31,9 @@
"test:browser:unit:debug": "karma start --auto-watch --unit",
"test:cordova": "karma start --single-run --cordova",
"test:cordova:debug": "karma start --auto-watch --cordova",
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/!(platform_browser|platform_react_native|platform_cordova)/**/*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js",
"test:node": "run-s test:node:unit test:node:integration",
"test:node:unit": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/!(platform_browser|platform_react_native|platform_cordova)/**/*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js",
"test:node:integration": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/integration/flows/{email,anonymous}.test.ts' --config ../../config/mocharc.node.js",
"api-report": "api-extractor run --local --verbose",
"predoc": "node ../../scripts/exp/remove-exp.js temp",
"doc": "api-documenter markdown --input temp --output docs",
Expand Down
2 changes: 1 addition & 1 deletion packages-exp/auth-exp/test/helpers/integration/helpers.ts
Expand Up @@ -18,7 +18,7 @@
import { deleteApp, initializeApp } from '@firebase/app-exp';
import { Auth, User } from '@firebase/auth-types-exp';

import { getAuth } from '../../../index';
import { getAuth } from '../../../'; // Use browser OR node dist entrypoint depending on test env.
import { _generateEventId } from '../../../src/core/util/event_id';

// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down

0 comments on commit 145c62b

Please sign in to comment.