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

passing setupFiles config from CLI #1022

Closed
aaronabramov opened this issue May 18, 2016 · 4 comments
Closed

passing setupFiles config from CLI #1022

aaronabramov opened this issue May 18, 2016 · 4 comments

Comments

@aaronabramov
Copy link
Contributor

i need to pass a reporter setup file from CLI keeping the rest of the config (in package.json) untouched.
Is there an easy way to do it?

basically i need to setup an extra console.log calls for react equivalence tests (facebook/react#6769 (comment)), but only do it from another test so it doesn't flood the output of the main npm test command

@aaronabramov
Copy link
Contributor Author

i can implement something like
jest --setupFile file1.js --setupFile file2.js

@cpojer
Copy link
Member

cpojer commented May 18, 2016

nope. There is --testEnvData or something however that you can pass in and then toggle behavior based on it.

@hgenru
Copy link

hgenru commented Jun 1, 2018

@cpojer --testEnvData option removed. What option should we use now?

@github-actions
Copy link

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 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants