8000 Next release by evansiroky · Pull Request #272 · conveyal/mastarm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Next release #272

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

Merged
merged 3 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ Options:
-u, --update-snapshots Force update of snapshots. USE WITH CAUTION.
--coverage Run Jest with coverage reporting
--coverage-paths <paths> Extra paths to collect code coverage from
--jest-cli-args <args> Extra arguments to pass directly to the Jest Cli. Make sure to encapsulate all extra arguments in quote
--no-cache Run Jest without cache (defaults to using cache)
--run-in-band Run all tests serially in the current process
--setup-files <paths> Setup files to run before each test
Expand Down
4 changes: 4 additions & 0 deletions bin/mastarm-test
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ commander
'Extra paths to collect code coverage from'
)
.option('--force-exit', 'Force Jest to exit after all tests have completed running.')
.option(
'--jest-cli-args <args>',
'Extra arguments to pass directly to the Jest Cli. Make sure to encapsulate all extra arguments in quotes'
)
.option('--no-cache', 'Run Jest without cache (defaults to using cache)')
.option('--run-in-band', 'Run all tests serially in the current process')
.option('--setup-files <paths>', 'Setup files to run before each test')
Expand Down
4 changes: 4 additions & 0 deletions lib/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ module.exports.generateTestConfig = (patterns, options) => {

jestArguments.push('--config', JSON.stringify(jestConfig))

if (options.jestCliArgs) {
jestArguments = jestArguments.concat(...options.jestCliArgs.split(' '))
}

if (patterns) {
jestArguments = jestArguments.concat(patterns)
}
Expand Down
0