1 | process.env.NODE_ENV = 'test';
|
2 |
|
3 | const createJestConfig = require('./utils/createJestConfig');
|
4 | const jest = require('jest');
|
5 | const path = require('path');
|
6 | const paths = require('../config/paths');
|
7 |
|
8 | const argv = process.argv.slice(2);
|
9 |
|
10 | const index = argv.indexOf('--debug-template');
|
11 | if(index !== -1) {
|
12 | argv.splice(index, 1);
|
13 | }
|
14 |
|
15 | argv.push('--config', JSON.stringify(createJestConfig(
|
16 | relativePath => path.resolve(__dirname, '..', relativePath),
|
17 | path.resolve(paths.appSrc, '..')
|
18 | )));
|
19 |
|
20 | jest.run(argv); |
\ | No newline at end of file |