-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix integration test #12859
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
Fix integration test #12859
Conversation
# Conflicts: # tests/integration/__tests__/bundle.js # tests/integration/__tests__/help-options.js # tests/integration/__tests__/infer-parser.js # tests/integration/cli-worker.js
# Conflicts: # tests/integration/__tests__/early-exit.js # tests/integration/__tests__/infer-parser.js # tests/integration/__tests__/parser-api.js # tests/integration/__tests__/support-info.js # tests/integration/__tests__/with-parser-inference.js
jest-light-runnerThis reverts commit 52c90b2.
package.json
Outdated
| "execa": "6.1.0", | ||
| "jest": "28.1.0", | ||
| "jest-light-runner": "0.2.2", | ||
| "jest-light-runner": "fisker/jest-light-runner#fix-addSnapshotSerializer", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "execa": "6.1.0", | ||
| "jest": "28.1.0", | ||
| "jest-light-runner": "0.2.2", | ||
| "jest-light-runner": "fisker/jest-light-runner#b5e893d3a7d301bfb5d68ed81eebadbe2bb0577d", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question, what is a difference between I missed #12859 (comment)jest-light-runnner and your fork?
| import jestPathSerializer from "../path-serializer.js"; | ||
|
|
||
| const { require } = createEsmUtils(import.meta); | ||
| const { require, importModule } = createEsmUtils(import.meta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the diff between import and importModule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
importModule = import(url.pathToFileURL()) on windows the argument must be a URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it
sosukesuzuki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
|
@sosukesuzuki I accidentally changed the fixtures for --cache test, but test still passed 20d63ec, also this test changes files and create directories during test, I accidentally committed them several times, I think better use a temp dir to run them, do you think you can do that? |
Removed from prettier#12859
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨