forked from MetaMask/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.e2e.js
More file actions
30 lines (24 loc) · 1.08 KB
/
Copy pathjest.config.e2e.js
File metadata and controls
30 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Jest configuration for the subprocess e2e suite in `tests/`.
*
* Kept separate from `jest.config.js` because these suites spawn the BUILT `mm`
* CLI and the native `better-sqlite3` addon as real child processes: they must
* stay out of the fast unit `test` run and must not be held to that run's
* 100%-coverage gate (subprocess work is invisible to in-process coverage).
* Run it with `yarn test:e2e`.
*/
const merge = require('deepmerge');
const baseConfig = require('../../jest.config.packages');
module.exports = merge(baseConfig, {
displayName: 'wallet-cli:e2e',
// Every test under `tests/` is a subprocess e2e; the default config runs
// everything in `src/`.
roots: ['<rootDir>/tests'],
// Coverage is meaningless here — the work happens in spawned processes — so
// collecting it would only report the e2e harness as uncovered source.
collectCoverage: false,
// The CLI runs in a normal Node process with the Web Crypto globals, so this
// suite needs neither the `jest.environment.js` polyfill nor any coverage
// threshold.
testEnvironment: 'node',
});