12345678910111213141516171819202122232425262728 |
- 'use strict';
-
-
- process.env.BABEL_ENV = 'test';
- process.env.NODE_ENV = 'test';
- process.env.PUBLIC_URL = '';
-
-
-
-
- process.on('unhandledRejection', err => {
- throw err;
- });
-
-
- require('../config/env');
-
- const jest = require('jest');
- let argv = process.argv.slice(2);
-
-
- if (!process.env.CI && argv.indexOf('--coverage') < 0) {
- argv.push('--watch');
- }
-
-
- jest.run(argv);
|