nocobase/scripts/teardown.setup.ts
2023-09-09 08:14:28 +08:00

14 lines
340 B
TypeScript

import { FullConfig } from '@playwright/test';
import { deleteNocoBase } from './utils';
const shouldCloseServer = process.env.SHOULD_CLOSE_SERVER === 'true';
async function teardownSetup(config: FullConfig) {
// 测试运行结束后,关闭服务
if (shouldCloseServer) {
deleteNocoBase();
}
}
export default teardownSetup;