chore: improve add-task command e2e test

This commit is contained in:
Ralph Khreish
2025-07-09 13:54:55 +03:00
parent 890fc6cc5c
commit bb1b36e891
11 changed files with 1420 additions and 941 deletions

19
tests/e2e/run-jest-e2e.js Normal file
View 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);
});