Skip to content

Commit

Permalink
Fix jest-worker readme with changes to exports (#11468)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed May 28, 2021
1 parent 0088802 commit ae3fc94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-worker/README.md
Expand Up @@ -21,7 +21,7 @@ This example covers the minimal usage:
### File `parent.js`

```javascript
import JestWorker from 'jest-worker';
import {Worker as JestWorker} from 'jest-worker';

async function main() {
const worker = new JestWorker(require.resolve('./Worker'));
Expand All @@ -47,7 +47,7 @@ Since `worker_threads` are considered experimental in Node, you have to opt-in t

## API

The only exposed method is a constructor (`JestWorker`) that is initialized by passing the worker path, plus an options object.
The `Worker` export is a constructor that is initialized by passing the worker path, plus an options object.

### `workerPath: string` (required)

Expand Down Expand Up @@ -153,7 +153,7 @@ This example covers the standard usage:
### File `parent.js`

```javascript
import JestWorker from 'jest-worker';
import {Worker as JestWorker} from 'jest-worker';

async function main() {
const myWorker = new JestWorker(require.resolve('./Worker'), {
Expand Down

0 comments on commit ae3fc94

Please sign in to comment.