Samuel Attard
3bb67099de
chore: remove remaining mocha references
...
- refresh-page fixture served mocha.js as a 'large JS file' over a custom
protocol; point it at chai.js instead since mocha is no longer a dep
- drop descriptive 'mocha' mentions from comments
2026-04-13 00:59:19 -07:00
Samuel Attard
6fea5e8691
build: switch spec runner from mocha to vitest
2026-04-13 00:59:19 -07:00
Samuel Attard
7a5dc9e725
chore: remove ELECTRON_FORCE_TEST_SUITE_EXIT mechanism
...
This was a win-arm64 workaround for the mocha runner: process.exit() could
hang in the single Electron process, so the suite SIGTERMed itself after
printing the failure count to stdout for script/spec-runner.js to scrape.
Under vitest, the process that decides and reports the exit code is the
plain-Node vitest CLI; Electron instances are pool workers that the pool
tears down. The workaround no longer applies.
2026-04-13 00:59:19 -07:00
Samuel Attard
2067a6b975
chore: port CI-only behaviour and defer() ordering from spec/index.js
...
- allowOnly: !CI matches mocha's forbidOnly
- retry: 3 on CI matches mocha's CI retries
- runCleanupFunctions via ctx.onTestFinished so defer()-ed cleanups run
before test-file afterEach hooks, matching the per-suite hook ordering
in spec/index.js
2026-04-13 00:59:18 -07:00
Samuel Attard
3dbd48441e
chore: replace ifit/ifdescribe addOnly shim with vitest runIf
2026-04-13 00:59:18 -07:00
Samuel Attard
6eee70a432
chore: migrate webview-spec.ts to vitest
2026-04-13 00:59:18 -07:00
Samuel Attard
07cdd3543b
chore: migrate visibility-state-spec.ts to vitest
2026-04-13 00:59:17 -07:00
Samuel Attard
e7d867952c
chore: migrate version-bump-spec.ts to vitest
2026-04-13 00:59:17 -07:00
Samuel Attard
e4474b232e
chore: migrate types-spec.ts to vitest
2026-04-13 00:59:17 -07:00
Samuel Attard
d39cbc204b
chore: migrate spellchecker-spec.ts to vitest
2026-04-13 00:59:17 -07:00
Samuel Attard
b1f3befe21
chore: migrate security-warnings-spec.ts to vitest
2026-04-13 00:59:16 -07:00
Samuel Attard
6d99359799
chore: migrate release-notes-spec.ts to vitest
2026-04-13 00:59:16 -07:00
Samuel Attard
b5c9d0bdff
chore: migrate process-binding-spec.ts to vitest
2026-04-13 00:59:16 -07:00
Samuel Attard
46464ace53
chore: migrate parse-features-string-spec.ts to vitest
2026-04-13 00:59:15 -07:00
Samuel Attard
46ce6bdc94
chore: migrate node-spec.ts to vitest
2026-04-13 00:59:15 -07:00
Samuel Attard
295deb50e0
chore: migrate modules-spec.ts to vitest
2026-04-13 00:59:15 -07:00
Samuel Attard
2e8b3fb5bf
chore: migrate mas-spec.ts to vitest
2026-04-13 00:59:14 -07:00
Samuel Attard
4304cd88b6
chore: migrate logging-spec.ts to vitest
2026-04-13 00:59:14 -07:00
Samuel Attard
b93c6dd11a
chore: migrate guest-window-manager-spec.ts to vitest
2026-04-13 00:59:14 -07:00
Samuel Attard
6c9447f2e6
chore: migrate fuses-spec.ts to vitest
2026-04-13 00:59:14 -07:00
Samuel Attard
1127cd3b6c
chore: migrate extensions-spec.ts to vitest
2026-04-13 00:59:13 -07:00
Samuel Attard
0608bc93a0
chore: migrate esm-spec.ts to vitest
2026-04-13 00:59:13 -07:00
Samuel Attard
0a1e6119a6
chore: migrate drag-region-spec.ts to vitest
2026-04-13 00:59:13 -07:00
Samuel Attard
d69cee4a05
chore: migrate deprecate-spec.ts to vitest
2026-04-13 00:59:12 -07:00
Samuel Attard
9c6df31551
chore: migrate crash-spec.ts to vitest
2026-04-13 00:59:12 -07:00
Samuel Attard
178456f69e
chore: migrate cpp-heap-spec.ts to vitest
2026-04-13 00:59:12 -07:00
Samuel Attard
8eac3fc601
chore: migrate chromium-spec.ts to vitest
2026-04-13 00:59:12 -07:00
Samuel Attard
971d4369eb
chore: migrate autofill-spec.ts to vitest
2026-04-13 00:59:11 -07:00
Samuel Attard
8dc0354881
chore: migrate asar-spec.ts to vitest
2026-04-13 00:59:11 -07:00
Samuel Attard
4d6349eeca
chore: migrate asar-integrity-spec.ts to vitest
2026-04-13 00:59:11 -07:00
Samuel Attard
24fc081b2f
chore: migrate api-web-utils-spec.ts to vitest
2026-04-13 00:59:10 -07:00
Samuel Attard
1e0e9a41f3
chore: migrate api-web-request-spec.ts to vitest
2026-04-13 00:59:10 -07:00
Samuel Attard
d2a5c72b5f
chore: migrate api-web-frame-spec.ts to vitest
2026-04-13 00:59:10 -07:00
Samuel Attard
2e7aaacbbe
chore: migrate api-web-frame-main-spec.ts to vitest
2026-04-13 00:59:09 -07:00
Samuel Attard
0419a43b84
chore: migrate api-web-contents-view-spec.ts to vitest
2026-04-13 00:59:09 -07:00
Samuel Attard
0faef330c1
chore: migrate api-web-contents-spec.ts to vitest
2026-04-13 00:59:09 -07:00
Samuel Attard
25a4d53dcc
chore: migrate api-view-spec.ts to vitest
2026-04-13 00:59:09 -07:00
Samuel Attard
644bc84146
chore: migrate api-utility-process-spec.ts to vitest
2026-04-13 00:59:08 -07:00
Samuel Attard
040fa8cb6a
chore: migrate api-tray-spec.ts to vitest
2026-04-13 00:59:08 -07:00
Samuel Attard
6fb8c72b96
chore: migrate api-touch-bar-spec.ts to vitest
2026-04-13 00:59:08 -07:00
Samuel Attard
8881184167
chore: migrate api-system-preferences-spec.ts to vitest
2026-04-13 00:59:07 -07:00
Samuel Attard
c34e07fae5
chore: migrate api-subframe-spec.ts to vitest
2026-04-13 00:59:07 -07:00
Samuel Attard
8cdb30f0f0
chore: migrate api-shell-spec.ts to vitest
2026-04-13 00:59:07 -07:00
Samuel Attard
b58390fe1f
chore: migrate api-shared-texture-spec.ts to vitest
2026-04-13 00:59:07 -07:00
Samuel Attard
86589f707f
chore: migrate api-session-spec.ts to vitest
2026-04-13 00:59:06 -07:00
Samuel Attard
62a6b8118e
chore: migrate api-service-workers-spec.ts to vitest
2026-04-13 00:59:06 -07:00
Samuel Attard
7e9d88bd74
chore: migrate api-service-worker-main-spec.ts to vitest
2026-04-13 00:59:06 -07:00
Samuel Attard
562330457e
chore: migrate api-screen-spec.ts to vitest
2026-04-13 00:59:06 -07:00
Samuel Attard
913304c5bb
chore: migrate api-safe-storage-spec.ts to vitest
2026-04-13 00:59:05 -07:00
Samuel Attard
85643d44e5
chore: migrate api-protocol-spec.ts to vitest
2026-04-13 00:59:05 -07:00