Skip to content

Conversation

@JoviDeCroock
Copy link
Member

Adds vitest and associated scripts which will not succeed yet, as we have no projects.

@changeset-bot
Copy link

changeset-bot bot commented Jun 28, 2025

⚠️ No Changeset found

Latest commit: ba5884c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@JoviDeCroock JoviDeCroock changed the title test: add vitest prep (#707) Vitest migration Jun 28, 2025
@netlify
Copy link

netlify bot commented Jun 28, 2025

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit ba5884c
🔍 Latest deploy log https://app.netlify.com/projects/preact-signals-demo/deploys/690329d44271860008d3db78
😎 Deploy Preview https://deploy-preview-709--preact-signals-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 2025

Size Change: -7.01 kB (-6.57%) ✅

Total Size: 99.7 kB

Filename Size Change
docs/dist/assets/bench.********.js 1.59 kB -3 B (-0.19%)
docs/dist/assets/devtools.********.js 994 B -1.09 kB (-52.39%) 🏆
docs/dist/assets/index.********.js 1.08 kB -5.96 kB (-84.65%) 🏆
docs/dist/assets/preact.module.********.js 4.76 kB +40 B (+0.85%)
ℹ️ View Unchanged
Filename Size
docs/dist/assets/client.********.js 46.2 kB
docs/dist/assets/jsxRuntime.module.********.js 297 B
docs/dist/assets/signals-core.module.********.js 1.56 kB
docs/dist/assets/signals.module.********.js 2.58 kB
docs/dist/assets/style.********.css 1.27 kB
docs/dist/assets/style.********.js 21 B
docs/dist/basic-********.js 245 B
docs/dist/nesting-********.js 1.13 kB
docs/dist/react-********.js 242 B
packages/core/dist/signals-core.js 1.59 kB
packages/core/dist/signals-core.mjs 1.6 kB
packages/debug/dist/debug.js 3.64 kB
packages/debug/dist/debug.mjs 3.18 kB
packages/preact-transform/dist/signals-*********.js 1.3 kB
packages/preact-transform/dist/signals-transform.mjs 1.29 kB
packages/preact-transform/dist/signals-transform.umd.js 1.42 kB
packages/preact/dist/signals.js 1.72 kB
packages/preact/dist/signals.mjs 1.68 kB
packages/react-transform/dist/signals-*********.js 6.89 kB
packages/react-transform/dist/signals-transform.mjs 6.09 kB
packages/react-transform/dist/signals-transform.umd.js 7.01 kB
packages/react/dist/signals.js 188 B
packages/react/dist/signals.mjs 150 B

compressed-size-action

@43081j
Copy link
Contributor

43081j commented Jul 1, 2025

CI of these will fail right now because it seems vite requires node 20+

we might have to downgrade vite for now, presumably the previous major worked on 18.x

@43081j
Copy link
Contributor

43081j commented Oct 22, 2025

this should be good now!

we just need to catch it up from main

Adds vitest and associated scripts which will not succeed yet, as we
have no projects.
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

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
Migrates the signals package to use vitest browser tests.
Migrates the core package to use vitest.
43081j and others added 5 commits October 29, 2025 08:06
* 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
* chore: remove unused karma config

* test: correct coverage globs
* 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
@43081j
Copy link
Contributor

43081j commented Oct 30, 2025

It builds!

Amazing. Now we just need to figure out how to land it 😂

@JoviDeCroock JoviDeCroock marked this pull request as ready for review November 1, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants