作者:____洋果子 | 来源:互联网 | 2023-08-30 02:05
feat(testing): Support default Webstorm test runner
This change adds additional jest options to builder's
and maps them in
.
Expected Behavior
Webstorm is able to run jest tests without updating the configuration.
Webstorm should be able to open a spec file, click the play icon for the relevant test, and the test should run without an error.
Current Behavior
Webstorm attempts to run the tests with options supported by jest but the builder.
The unknown options cause the IDE test runner to error with out running the tests.
The specific options are config, colors, reporters, verbose, and testPathPattern.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- yarn create nx-workspace my-workspace
- webstorm my-workspace
- open app.component.spec.ts
- click play icon
该提问来源于开源项目:nrwl/nx
Because I landed here via google... https://github.com/nrwl/nx/issues/1439#issuecomment-561268656 was the solution which worked for me.
- Add
1
| setupFilesAfterEnv: ['./src/test-setup.ts'] |
into you
directly in WebStorm (first failed)
and select the proper
as
of your app/lib