Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 11, 2021
1 parent f3cd7f5 commit 7d8b833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -88,16 +88,16 @@ it('initializes the thread with the given workerPath and workerId', () => {
forkOptions: {},
maxRetries: 3,
setupArgs: ['foo', 'bar'],
workerPath: '/tmp/foo/bar/baz.js',
workerId: 2,
workerPath: '/tmp/foo/bar/baz.js',
});

expect(worker._worker.postMessage.mock.calls[0][0]).toEqual([
CHILD_MESSAGE_INITIALIZE,
false,
'/tmp/foo/bar/baz.js',
['foo', 'bar'],
'3'
'3',
]);
});

Expand Down
Expand Up @@ -134,11 +134,11 @@ it('sets env.JEST_WORKER_ID', () => {
true, // Not really used here, but for flow type purity.
'./my-fancy-worker',
[],
'3'
'3',
]);

expect(process.env.JEST_WORKER_ID).toBe('3');
})
});

it('lazily requires the file', () => {
expect(mockCount).toBe(0);
Expand Down

0 comments on commit 7d8b833

Please sign in to comment.