Skip to content

Commit 92d6d44

Browse files
committed
docs: remove reference to old readInitialOptions.
1 parent 9f056b8 commit 92d6d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ProgrammaticApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Async function that performs the run. It returns a promise that resolves in a `J
7474

7575
These are more advanced use cases that demonstrate the power of the api.
7676

77-
### Forcing some config options
77+
### Overriding config options
7878

79-
You can use `readInitialOptions` in combination with `runCLI` to run jest using the local config, while forcing some options. We're also always focussing our tests on the `foo.js` file.
79+
You can use `createJest` to create a Jest instance, and alter some of the options using `globalConfig` adn `projectConfigs`.
8080

8181
```js
8282
import {createJest} from 'jest';

0 commit comments

Comments
 (0)