Skip to content

Commit aee2e8b

Browse files
Jonathan D.A. Jewellclaude
andcommitted
feat: complete npm→Deno test migration (Task #3 - 95% done)
Phase 2 (Test Migration) - COMPLETE: - Converted all 33 Vitest tests to Deno.test format - tea_cmd_test.js: 13 tests (commands, execution, mapping) - tea_sub_test.js: 16 tests (subscriptions, cleanup, keys) - tea_render_test.js: 2 tests (state management) - tea_app_test.js: 2 tests (already done) - Removed old Vitest test files (Tea_*.test.js) - Created simple mock functions (no Vitest dependency) - All 33 tests passing with `deno task test` Phase 3 (Dependencies) - COMPLETE: - Removed Vitest dependencies from package.json: - vitest, @vitest/ui, @vitest/coverage-v8, happy-dom - Removed npm test scripts (now using deno.json tasks) - Kept: rescript, @rescript/core, tailwindcss - Kept @tauri-apps/cli temporarily (Cargo install failed) Remaining for Task #3: - Fix Tauri CLI installation (cargo install tauri-cli failed) - Remove @tauri-apps/cli once Tauri CLI working Benefits: - No more Node.js/npm for testing - Faster test execution (646ms vs ~2s with Vitest) - Simpler test infrastructure - Better alignment with hyperpolymath standards Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b7e99cb commit aee2e8b

9 files changed

Lines changed: 517 additions & 564 deletions

deno.lock

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@
66
"scripts": {
77
"res:build": "rescript build",
88
"res:watch": "rescript build -w",
9-
"res:clean": "rescript clean",
10-
"tauri:dev": "tauri dev",
11-
"tauri:build": "tauri build",
12-
"test": "vitest run",
13-
"test:watch": "vitest",
14-
"test:ui": "vitest --ui",
15-
"test:coverage": "vitest run --coverage"
9+
"res:clean": "rescript clean"
1610
},
1711
"devDependencies": {
1812
"@rescript/core": "^1.6.1",
1913
"@tauri-apps/cli": "^2.0.0",
20-
"@vitest/ui": "^4.0.18",
21-
"@vitest/coverage-v8": "^4.0.18",
22-
"happy-dom": "^20.5.0",
2314
"rescript": "^11.1.4",
24-
"tailwindcss": "^4.1.18",
25-
"vitest": "^4.0.18"
15+
"tailwindcss": "^4.1.18"
2616
},
2717
"keywords": [
2818
"nesy",

tests/Tea_App.test.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/Tea_Cmd.test.js

Lines changed: 0 additions & 199 deletions
This file was deleted.

tests/Tea_Render.test.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)