You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
One has to choose if tests should be run in Node or jsdom (or something else), it is not possible to have some tests run one environment, and some other in another environment
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
N/A
What is the expected behavior?
To be able to choose, on a file-by-file basis, if the tests should be run in jsdom or node, and have all tests ran within the same command.
Current workaround is to have two separate scripts in package.json, resulting in two separate test runs.
I mentioned this on reactiflux, and was told something like this was wanted:
/** * @environment jsdom */
So this is at least a tracking issue for it! 😄 I would like to work on this, but I don't know how much work it would entail, or where to begin. I'll have a look this weekend.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest v18.1.0, yarn 0.20.0 macOS Sierra
The text was updated successfully, but these errors were encountered:
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.
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
One has to choose if tests should be run in Node or jsdom (or something else), it is not possible to have some tests run one environment, and some other in another environment
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.N/A
What is the expected behavior?
To be able to choose, on a file-by-file basis, if the tests should be run in jsdom or node, and have all tests ran within the same command.
Current workaround is to have two separate scripts in package.json, resulting in two separate test runs.
I mentioned this on reactiflux, and was told something like this was wanted:
So this is at least a tracking issue for it! 😄 I would like to work on this, but I don't know how much work it would entail, or where to begin. I'll have a look this weekend.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest v18.1.0, yarn 0.20.0 macOS Sierra
The text was updated successfully, but these errors were encountered: