Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router params: use Jest's ESM support #357

Merged
merged 1 commit into from
Feb 21, 2021

Conversation

developit
Copy link
Member

@developit developit commented Feb 21, 2021

Jest supports Node's native ESM now, and it seems to work nicely! A quick test shows it's around 30% faster, which is pretty nice.

@changeset-bot
Copy link

changeset-bot bot commented Feb 21, 2021

⚠️ No Changeset found

Latest commit: 08650f2

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 merged commit 8da84b2 into router-params Feb 21, 2021
@JoviDeCroock JoviDeCroock deleted the router-params-jest-esm branch February 21, 2021 19:21
JoviDeCroock added a commit that referenced this pull request Feb 21, 2021
* support route parameters and inject them into the component

* add changeset

* cleanup residual variables

* fix lint-staged

* reduce diff

* always return undefined

* add tests

* remove log

* update readme

* fix indentation

* Update packages/preact-iso/router.js

Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>

* use correct yml syntax

* use context for route

* use createElement (avoid jsx)

* Update neat-wasps-mix.md

* remove unused import

* Update packages/preact-iso/router.js

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Use Jest's native ESM support (#357)

* lint fixes

* TypeScript fixes

* add type for useRoute

Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: Jason Miller <jason@developit.ca>
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.

2 participants