Skip to content

Commit 56967a7

Browse files
committed
test: 前置打包逻辑不完整
1 parent d01523c commit 56967a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/bin.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import { beforeAll, expect, test } from 'vitest';
77
beforeAll(async () => {
88
try {
99
await rm('dist', { recursive: true });
10+
await rm('backup', { recursive: true });
1011
} catch {}
11-
execSync('npx tsup', { encoding: 'utf8', stdio: 'inherit' });
12+
execSync('pnpm build', { encoding: 'utf8', stdio: 'inherit' });
1213
}, 15_000);
1314

1415
test('生成 bin.mjs', async () => {

0 commit comments

Comments
 (0)