mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 07:16:10 +00:00
14 lines
340 B
TypeScript
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;
|