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();
|