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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tests to be run from node_modules #9059

Closed
aarongoldenthal opened this issue Oct 17, 2019 · 3 comments
Closed

Allow tests to be run from node_modules #9059

aarongoldenthal opened this issue Oct 17, 2019 · 3 comments

Comments

@aarongoldenthal
Copy link

馃殌 Feature Proposal

Allow Jest tests to be run from within the node_modules folder.

Motivation

Jest provides a rich testing and reporting framework, and has proven useful as the basis for other applications providing generic test suites to be run against other projects. In these cases the applications are installed under node_modules, so all applicable application tests files are there as well.

Workaround (and its removal)

There have been numerous previous issues written on various flavors of this (#7145, #1995, and many others). The workaround presented in most (if not all) cases is using:

"haste": {
  "providesModuleNodeModules": [
    "package-inside-node_modules-1",
    "package-inside-node_modules-2",
  ]
}

...which does work. But, PR #8535 includes the removal of providesModuleNodeModules, which would indicate this workaround may no longer be viable once incorporated.

@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions
Copy link

github-actions bot commented May 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant