Skip to content

Commit 8dc32ca

Browse files
JoviDeCroock43081j
andauthored
Vitest migration (#709)
* test: add vitest prep (#707) Adds vitest and associated scripts which will not succeed yet, as we have no projects. * fix: move to using a root vitest config (#713) We were quickly going to end up with too many sub-configs, and all sorts of problems with extending the various configs. This switches to a single root config which globs each of the monorepo packages instead. * test: migrate preact/utils to vitest (#715) * test: migrate preact/utils to vitest This also adds `preact/utils` to the pnpm workspace so it can be resolved properly via `@preact/signals-utils`. * chore: revert workspace change * fix: downgrade to vite 6 and revert the revert * test: migrate signals package to vitest (#710) Migrates the signals package to use vitest browser tests. * test: migrate core tests to vitest (#708) Migrates the core package to use vitest. * test: migrate react tests to vitest (#716) * test: migrate react tests to vitest * test: migrate react-transform to vitest * chore: remove mocha/sinon/chai/karma * fix: add exact import * fix: strongly type mocked components * test: add the sketchy transform back * fix: funky runtime path * fix: resolve signals after runtime * test: map things to places * test: use vitest aliases THIS MAY ACTUALLY WORK! * chore: use react 16 in runtime too * test: use correct vitest coverage globs (#779) * chore: remove unused karma config * test: correct coverage globs * Fix some stragglers * Move to browser * test: de-dupe dependencies & use CDP GC (#786) * chore: de-dupe babel dependencies In the lockfile, we ended up with two versions of babel. This is basically de-duping and dropping one of them. * fix: use vitest assertions * fix: dedupe vite * test: use cdp to force garbage collection --------- Co-authored-by: James Garbutt <43081j@users.noreply.github.com>
2 parents 5aac56f + d1bb97d commit 8dc32ca

35 files changed

Lines changed: 2519 additions & 3130 deletions

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
- name: Test react production build
4747
run: pnpm test:prod
4848

49+
- name: Prepare runtime with React 16
50+
working-directory: packages/react/runtime
51+
run: |
52+
pnpm i react@16 react-dom@16 react-router-dom@5
53+
4954
- name: Test React 16
5055
working-directory: packages/react
5156
run: |

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@preact/preset-vite": "^2.3.0",
2121
"@types/chrome": "^0.0.270",
2222
"typescript": "^5.8.3",
23-
"vite": "^7.0.0",
23+
"vite": "^6.3.5",
2424
"web-ext": "^7.0.0"
2525
},
2626
"keywords": [

karma.conf.js

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

0 commit comments

Comments
 (0)