Skip to content

Commit

Permalink
update test timeout usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 17, 2024
1 parent a441529 commit a2442d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ You can combine `-i` with `-t` to debug a subset of tests. For example,
yarn run --inspect-brk jest -i babel-plugin-arrow-functions -t "destructuring parameters"
```

If you plan to stay long in the debugger (which you'll likely do!), you may increase the test timeout by editing [test/testSetupFile.js](https://github.com/babel/babel/blob/main/test/testSetupFile.js).
If you plan to stay long in the debugger (which you'll likely do!), you may increase the test timeout by the [Jest CLI `--testTimeout` option](https://jestjs.io/docs/cli#--testtimeoutnumber). For example to increase test timeout to 500 seconds

```sh
yarn run --inspect-brk jest -i babel-parser -t "my new test" --testTimeout=500000
```

To overwrite any test fixtures when fixing a bug or anything, add the env variable `OVERWRITE=true`

Expand Down

0 comments on commit a2442d1

Please sign in to comment.