feat(logging-p0): complete Wave 2 - Auth/Extractor/Cleaner services transformed

This commit is contained in:
Misaka
2026-04-04 10:39:06 +08:00
parent 24d9bfebaf
commit 78a3066904
14 changed files with 3183 additions and 416 deletions

72
test-output.txt Normal file
View File

@@ -0,0 +1,72 @@
> erpauto@1.8.0 test:run
> vitest run cleaner
 RUN  v4.0.18 D:/FileLib/Projects/CodeMigration/ERPAuto
stdout | tests/unit/cleaner-handler.test.ts
Test suite starting...
stdout | tests/unit/cleaner-helpers.test.ts
Test suite starting...
stdout | tests/unit/cleaner-helpers.test.ts
Test suite completed.
鉁?[39m tests/unit/cleaner-helpers.test.ts (3 tests) 6ms
stdout | tests/unit/cleaner-handler.test.ts
Test suite completed.
鉁?[39m tests/unit/cleaner-handler.test.ts (2 tests) 120ms
stdout | tests/unit/cleaner.test.ts
Test suite starting...
stdout | tests/unit/cleaner.test.ts
Test suite completed.
鉁?[39m tests/unit/cleaner.test.ts (8 tests) 64ms
stdout | tests/integration/cleaner.test.ts
Test suite starting...
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Dry-run mode > should initialize with dry-run mode
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Dry-run mode > should track materials to delete without actually deleting (dry-run)
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Order processing > should process single order and return details
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Order processing > should handle order with "瀹℃壒閫氳繃" status
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Order processing > should handle multiple orders with progress callback
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Error handling > should continue processing after order error
Skipping test: ERP credentials not configured
stderr | tests/integration/cleaner.test.ts > Cleaner Service (Integration) > Navigation > should navigate to discrete production order maintenance page
Skipping test: ERP credentials not configured
stdout | tests/integration/cleaner.test.ts
Test suite completed.
鉁?[39m tests/integration/cleaner.test.ts (7 tests) 10ms
stdout | tests/manual/cleaner-slow-motion.test.ts
Test suite starting...
stderr | tests/manual/cleaner-slow-motion.test.ts > Cleaner Slow Motion Test > should run cleaner in slow motion mode
Please set ERP_URL, ERP_USERNAME, ERP_PASSWORD in .env file
stdout | tests/manual/cleaner-slow-motion.test.ts
Test suite completed.
鉁?[39m tests/manual/cleaner-slow-motion.test.ts (1 test) 5ms
 Test Files  5 passed (5)
 Tests  21 passed (21)
 Start at  10:36:50
 Duration  1.50s (transform 729ms, setup 228ms, import 2.41s, tests 204ms, environment 1ms)