chore: improve add-task command e2e test
This commit is contained in:
19
tests/e2e/run-jest-e2e.js
Normal file
19
tests/e2e/run-jest-e2e.js
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { spawn } = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
const args = [
|
||||
'--config', 'jest.e2e.config.js',
|
||||
...process.argv.slice(2)
|
||||
];
|
||||
|
||||
const jest = spawn('jest', args, {
|
||||
cwd: path.join(__dirname, '../..'),
|
||||
stdio: 'inherit',
|
||||
env: { ...process.env, NODE_ENV: 'test' }
|
||||
});
|
||||
|
||||
jest.on('exit', (code) => {
|
||||
process.exit(code);
|
||||
});
|
||||
Reference in New Issue
Block a user