Skip to content

Support Jest flags and config options. #3

@mzgoddard

Description

@mzgoddard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions