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

Support Jest flags and config options. #3

Open
5 of 72 tasks
mzgoddard opened this issue Jun 15, 2017 · 2 comments
Open
5 of 72 tasks

Support Jest flags and config options. #3

mzgoddard opened this issue Jun 15, 2017 · 2 comments

Comments

@mzgoddard
Copy link
Owner

mzgoddard commented Jun 15, 2017

Breaking the flags and options into phase first are the low hanging fruit, then snapshot and watch features, and finally coverage. Most of the low hanging fruit should be just testing that the option is passed and jest with the webpacked output behaves as expected, such as only testing tests that match the --testNamePattern. watch and coverage follow that up since many of them will take longer. --watchAll is likely to be supported sooner since the overall jest-webpack strategy strongly supports that. Supportly --onlyChanged and by relation --watch will take more time to create a fake repo with the files that would have been built in the last commit so jest can compare with the built files from the current changes.

Since all of watch and coverage will take longer many jest uses that use the low hanging fruit can use jest-webpack sooner. Hopefully some parts of watch and coverage can be implemented before the first phase is complete.

First

Flags

Options

Second

Flags

  • --colors
  • --forceExit
  • --lastCommit
  • --onlyChanged
  • --updateSnapshot
  • --watch
  • --watchAll
  • --watchman

Options

  • snapshotSerializers

Third

Flags

  • --collectCoverageFrom
  • --coverage
  • --setupTestFrameworkScriptFile
  • --testRunner

Options

  • collectCoverage
  • collectCoverageFrom
  • coverageDirectory
  • coveragePathIgnorePatterns
  • coverageReporters
  • coverageThreshold
  • mapCoverage
  • resolver
  • setupTestFrameworkScriptFile
  • testResultsProcessor
  • testRunner
  • transform
  • transformIgnorePatterns
@TheLarkInn
Copy link

A --config flag would be nice for those tools that leverage webpack under the hood with a custom config filename.

@mzgoddard
Copy link
Owner Author

@TheLarkInn ya. --config is up there. I'm leaving that to jest. Any options for webpack will be --webpack* so a webpack config option will be --webpackConfig. Figure this tool should follow jest's command line option styling.

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