mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 04:15:19 +00:00
16 lines
394 B
TypeScript
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();
|