-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): support Jest-specific CLI flag aliases (#4124)
This adds support for the following Jest-specific CLI flag aliases: - "b" for "bail" - "e" for "expand" - "w" for "maxWorkers" - "o" for "onlyChanged" - "f" for "onlyFailures" - "i" for "runInBand" - "t" for "testNamePattern" - "u" for "updateSnapshot" Two additional flags supported by Jest ('c' for 'config' and 'h' for 'help') were already supported by Stencil. This also makes a small refactor to the CLI argument parser, mainly building up the `flags.unknownArgs` array proactively whenever we're in a situation where we don't know what to do, rather than filtering all the arguments after the fact.
- Loading branch information
1 parent
23a73f0
commit 56389a4
Showing
4 changed files
with
135 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters