Skip to content

Conversation

@fisker
Copy link
Member

@fisker fisker commented May 10, 2022

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

fisker added 24 commits April 27, 2022 18:26
# 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
@fisker fisker mentioned this pull request Jul 19, 2022
@fisker fisker changed the title Test: Run integration test with jest-light-runner Fix integration test Jul 19, 2022
@fisker fisker mentioned this pull request Jul 19, 2022
14 tasks
@fisker fisker marked this pull request as ready for review July 19, 2022 05:02
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",
Copy link
Member Author

Choose a reason for hiding this comment

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

@fisker fisker requested a review from sosukesuzuki July 19, 2022 05:03
This was referenced Jul 19, 2022
"execa": "6.1.0",
"jest": "28.1.0",
"jest-light-runner": "0.2.2",
"jest-light-runner": "fisker/jest-light-runner#b5e893d3a7d301bfb5d68ed81eebadbe2bb0577d",
Copy link
Contributor

@sosukesuzuki sosukesuzuki Jul 20, 2022

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 jest-light-runnner and your fork? I missed #12859 (comment)

import jestPathSerializer from "../path-serializer.js";

const { require } = createEsmUtils(import.meta);
const { require, importModule } = createEsmUtils(import.meta);
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I got it

Copy link
Contributor

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@fisker fisker merged commit 592f27c into prettier:next Jul 20, 2022
@fisker fisker deleted the integration-runner branch July 20, 2022 15:18
@fisker
Copy link
Member Author

fisker commented Jul 20, 2022

@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?

medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Jan 16, 2024
fisker added a commit to fisker/prettier that referenced this pull request Feb 16, 2025
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