Skip to content

Commit

Permalink
fix: use env.splitOutputFile variable name (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov authored Dec 27, 2023
1 parent cab7f0f commit 3c8058a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ You can also indicate where the plugin should output the timings, by setting the
$ SPLIT_FILE=timings.json SPLIT_OUTPUT_FILE=output.json npx cypress run
# Or use the Cypress --env option
$ npx cypress run --env splitFile=timings.json,outputFile=output.json
$ npx cypress run --env splitFile=timings.json,splitOutputFile=output.json
```

## CI summary
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function cypressSplit(on, config) {
let SPLIT_INDEX = process.env.SPLIT_INDEX || config.env.splitIndex
let SPLIT_FILE = process.env.SPLIT_FILE || config.env.splitFile
let SPLIT_OUTPUT_FILE =
process.env.SPLIT_OUTPUT_FILE || config.env.outputFile || SPLIT_FILE
process.env.SPLIT_OUTPUT_FILE || config.env.splitOutputFile || SPLIT_FILE

console.log('%s Timings are read from %s', label, SPLIT_FILE)
console.log('%s Timings will be written to %s', label, SPLIT_OUTPUT_FILE)
Expand Down

0 comments on commit 3c8058a

Please sign in to comment.