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

Avoid creating new node processes by leveraging processAsync #57

Merged
merged 11 commits into from Aug 4, 2021

Conversation

benmccann
Copy link
Collaborator

Closes #25

@sebastianrothe
Copy link
Collaborator

Do you think we can get rid of CJS completely and move all files to ESM ?

@sebastianrothe
Copy link
Collaborator

sebastianrothe commented Aug 2, 2021

I think we need to enforce a version of Jest >= 27, because it won't run with Jest 26 anymore. You got that already, sorry.

@benmccann
Copy link
Collaborator Author

Do you think we can get rid of CJS completely and move all files to ESM ?

I'd be in favor of that. It seems unrelated to this PR and best to do in a new one though

@sebastianrothe
Copy link
Collaborator

Do you think we can get rid of CJS completely and move all files to ESM ?

I'd be in favor of that. It seems unrelated to this PR and best to do in a new one though

I'm so sorry, but I disabled most of the tests with one of my older commits :(

https://github.com/mihar-22/svelte-jester/pull/53/files#diff-f638d82910738e07f34f9ca5c6cb2a01c223570f9c2425ddf60f61e2070c169dR64

@benmccann
Copy link
Collaborator Author

I'm so sorry, but I disabled most of the tests with one of my older commits :(

at least you're not alone in making that exact mistake... sveltejs/kit#2069 (comment)

@mihar-22
Copy link
Collaborator

mihar-22 commented Aug 2, 2021

PR LGTM! Feel free to merge when you're ready. Excited about this and also interested in moving to ESM in another PR if anyone is down for it. Happy to cut a release once we get that done.

@benmccann
Copy link
Collaborator Author

Cool. I guess the main thing is getting the tests re-enabled first. Is that something you're looking at @sebastianrothe ?

@sebastianrothe
Copy link
Collaborator

Yes, I have them running, but I had to switch everything to ESM. Don't know if that's okay, or if we should keep CJS as well.

@benmccann
Copy link
Collaborator Author

I'd say go ahead and switch it to ESM

@sebastianrothe
Copy link
Collaborator

Please have a look.

@sebastianrothe
Copy link
Collaborator

I'd say go ahead and switch it to ESM

I guess someone could run the code through Babel/Bundler and output a CJS version of it.

package.json Show resolved Hide resolved
README.md Show resolved Hide resolved
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
@benmccann
Copy link
Collaborator Author

LGTM

@mihar-22 mihar-22 merged commit 2383320 into svelteness:master Aug 4, 2021
@mihar-22
Copy link
Collaborator

mihar-22 commented Aug 4, 2021

Thanks for the work on this PR @benmccann and @sebastianrothe! Released in 1.8.0 🥳

@mihar-22
Copy link
Collaborator

mihar-22 commented Aug 4, 2021

Oh crap. I was meant to major bump...

mihar-22 added a commit that referenced this pull request Aug 4, 2021
mihar-22 added a commit that referenced this pull request Aug 4, 2021
mihar-22 pushed a commit that referenced this pull request Aug 4, 2021
BREAKING CHANGE: async transformers are only supported in Jest `>=27`.
@mihar-22
Copy link
Collaborator

mihar-22 commented Aug 4, 2021

Made a mess but all resolved and released in 2.0.0.

@benmccann
Copy link
Collaborator Author

thanks!!

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.

Use jest async transformers when available
3 participants