refactor(test): migrate e2e to Playwright and remove duplicate unit tests

Switch extractor-workflow e2e test from vitest to Playwright test runner
for consistency with playwright.config.ts. Remove redundant unit tests
(cleaner, erp-auth, extractor) that have been superseded by more thorough
replacements under tests/unit/services/erp/. Enable test isolation
unconditionally to prevent cross-file state pollution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-04-06 11:55:58 +08:00
parent fe6cdbf076
commit d0c745e243
5 changed files with 18 additions and 268 deletions

View File

@@ -11,8 +11,7 @@ export default defineConfig({
env: {
NODE_ENV: 'test'
},
// CI 环境启用隔离以捕获跨文件状态污染;本地开发禁用以提升速度
isolate: !!process.env.CI,
isolate: true,
pool: 'threads', // 使用线程池
maxWorkers: 4,
bail: process.env.CI ? 1 : undefined,