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

test: ensure cwd is restored after each test #604

Merged
merged 1 commit into from
Jun 20, 2020
Merged

test: ensure cwd is restored after each test #604

merged 1 commit into from
Jun 20, 2020

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jun 19, 2020

fixes #591

I'm really curious to why this only failed on Node 8 & 10 - my guess is that Module.createRequire behaviour works slightly differently than the fallback methods, but haven't tested that in full.

@G-Rath G-Rath requested a review from SimenB June 19, 2020 23:24
@SimenB
Copy link
Member

SimenB commented Jun 20, 2020

Module.createRequire is implemented in Jest, so shouldn't differ between node versions...

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jun 20, 2020

Interesting - it's probably not that, but out of interest I'm guessing Jest provides that regardless of Node version? because it wasn't implemented until Node 12....

It's failing very inconsistently, so I think it's a race condition overall.

@SimenB
Copy link
Member

SimenB commented Jun 20, 2020

It's conditional based on what's available in the running version of node, see jestjs/jest#9469

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jun 20, 2020

It's conditional

Good to know.

@G-Rath G-Rath merged commit 0456d2e into master Jun 20, 2020
@G-Rath G-Rath deleted the fix-ci branch June 20, 2020 11:11
@github-actions
Copy link

🎉 This PR is included in version 23.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Resolve CI problems with jest-runner-eslint
2 participants