nocobase/scripts/runE2e.setup.ts
被雨水过滤的空气-Rain 70b61c60c0
chore(e2e): make stability (#2751)
2023-10-06 18:59:59 +08:00

16 lines
394 B
TypeScript

import { runCommand, runNocoBase } from './utils';
const run = async () => {
const { kill, awaitForNocoBase } = await runNocoBase({
stdio: 'ignore', // 不输出服务的日志,避免干扰测试的日志
});
await awaitForNocoBase();
console.log('Start running tests...');
runCommand('npx', ['playwright', 'test', ...process.argv.slice(2)]);
kill?.('SIGKILL');
};
run();