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

fix(test-runner): add jest-matcher-utils to dependencies #8501

Merged

Conversation

mxschmitt
Copy link
Member

Fixes #8495

@pavelfeldman
Copy link
Member

pavelfeldman commented Aug 27, 2021

Let's lint this:

  • grep our source for import * from *
  • run require.resolve on each to see if it resolves to node_modules
  • check that everything outside src/web has explicit dep entry in package.json

Looks like check_deps just needs a few lines to make this all happen.

@merceyz
Copy link

merceyz commented Aug 27, 2021

@mxschmitt mxschmitt force-pushed the bugfix-add-jest-matcher-utils branch 2 times, most recently from b9a8f27 to 1bbae1f Compare September 1, 2021 09:49
@mxschmitt mxschmitt merged commit 5f6ec04 into microsoft:master Sep 2, 2021
mrienstra added a commit to mrienstra/jest that referenced this pull request Sep 5, 2021
The `playwright` repo uses `expect`, I'd like to bump the version they're using from `26.4.2` to `27.1.0`. Here is the issue which motivated this change: jestjs#11640

You can see my proposed changes here:
microsoft/playwright@master...mrienstra:patch-3

I haven't opened a PR for those changes yet, hoping to land this one first.

Playwright `npm check-deps` runs `utils/check_deps.js`, which contains a function `allowExternalImport` / `alllowExternalImport` (very recently added in microsoft/playwright#8501), which has a problem with the `expect` `package.json` `exports`, thus the motivation for this PR.
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.

[BUG] jest-matchers-util is an undeclared dependency, throws error on Yarn PnP
3 participants