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

Update jest #503

Merged
merged 3 commits into from
Jun 14, 2020
Merged

Update jest #503

merged 3 commits into from
Jun 14, 2020

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Feb 15, 2020

Again did them all together, and also switched test env to node for extra speed.

Also chucked in a type for a private property on Volume, as I was hanging around there tracking down the memory leak: it seems that calling unwatchFile from within the watchFile callback doesn't get applied completely until the next tick.

This could technically be a bug, but I don't think it's an issue outside of situations like with jest since this is happening because jest considers anything on the next tick after done is called a leak.

@G-Rath
Copy link
Collaborator Author

G-Rath commented Feb 15, 2020

This is failing due to jest-snapshot relying on a version of semver that doesn't support node 8.

It's a bug that's been fixed, but who knows when it'll be released - for now I'm going to leave this open and I'll update it when the next version of jest is released.

@G-Rath
Copy link
Collaborator Author

G-Rath commented Apr 21, 2020

This is now failing because ts-jest updated mkdirp to v1, which broke node@8 support.

Have opened an issue about getting it addressed.

@G-Rath G-Rath merged commit f2b3a9d into master Jun 14, 2020
@G-Rath G-Rath deleted the update-jest branch June 14, 2020 05:44
@streamich
Copy link
Owner

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -1020,8 +1020,10 @@ describe('volume', () => {
vol.writeFileSync('/lol.txt', '1');
setTimeout(() => {
vol.watchFile('/lol.txt', { interval: 1 }, (curr, prev) => {
vol.unwatchFile('/lol.txt');
done();
process.nextTick(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be ancient history at this point @G-Rath, so no worries if it's beyond recall; I was wondering if you managed to figure out what was going on with the watch/unwatch behaviour here, and whether there was anything reported upstream for it? Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants