nocobase/scripts/runE2e.setup.ts
被雨水过滤的空气-Rain f85fb6d7ba
refactor(e2e): support batch creation of collections (#2778)
* chore: types

* refactor: optimize create collections

* chore: make throw error

* chore: export createCollections
2023-10-10 07:46:24 +08:00

16 lines
400 B
TypeScript

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