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

jest-puppeteer.config.js not in the root #19

Closed
Diokuz opened this issue Mar 26, 2018 · 5 comments
Closed

jest-puppeteer.config.js not in the root #19

Diokuz opened this issue Mar 26, 2018 · 5 comments

Comments

@Diokuz
Copy link

Diokuz commented Mar 26, 2018

I want to place jest-puppeteer.config.js to custom folder. How could I tell that to jest-puppeteer?

@gregberge
Copy link
Member

Unfortunately for now you can't, same as Jest I think. You can create different configuration using environment variables.

@Diokuz
Copy link
Author

Diokuz commented Mar 26, 2018

Jest can be launched with custom config:

./node_modules/.bin/jest --config ./puppeteer/jest.config.js

@gregberge
Copy link
Member

Right now it is not possible to implement:

  • testEnvironmentOptions are not passed to "globalSetup" and "globalTeardown", so impossible to use it to specify config
  • Jest does not authorize to add cli options

@Diokuz
Copy link
Author

Diokuz commented Apr 5, 2018

What about environment variable?

JEST_PUPPETEER_CONFIG=some/path/to/config.js jest --maxWorkers=1

@gregberge gregberge reopened this Apr 5, 2018
@gregberge
Copy link
Member

Good idea!

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

No branches or pull requests

2 participants