mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-29 18:58:26 +08:00
f85fb6d7ba
* chore: types * refactor: optimize create collections * chore: make throw error * chore: export createCollections
16 lines
400 B
TypeScript
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();
|