Skip to content

Commit

Permalink
chore: refresh lockfile (#12651)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Apr 8, 2022
1 parent 40ac384 commit a5f1ef4
Show file tree
Hide file tree
Showing 7 changed files with 560 additions and 591 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
"node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"
},
"resolutions": {
"@testing-library/dom/pretty-format": "26.6.1",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-node": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/node": "*",
"ansi-escapes": "^4.2.1",
"chalk": "^4.0.0",
"emittery": "^0.8.1",
"emittery": "^0.10.2",
"exit": "^0.1.2",
"graceful-fs": "^4.2.9",
"jest-changed-files": "^28.0.0-alpha.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-core/src/TestWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/

import emittery = require('emittery');
import Emittery = require('emittery');

type State = {
interrupted: boolean;
};

export default class TestWatcher extends emittery<{change: State}> {
export default class TestWatcher extends Emittery<{change: State}> {
state: State;
private _isWatchMode: boolean;

Expand Down
16 changes: 12 additions & 4 deletions packages/jest-core/src/__tests__/watch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ describe('Watch mode flows', () => {
globalConfig,
onComplete: expect.any(Function),
outputStream: pipe,
testWatcher: new TestWatcher({isWatchMode: true}),
testWatcher: JSON.parse(
JSON.stringify(new TestWatcher({isWatchMode: true})),
),
});
});

Expand All @@ -156,7 +158,9 @@ describe('Watch mode flows', () => {
globalConfig,
onComplete: expect.any(Function),
outputStream: pipe,
testWatcher: new TestWatcher({isWatchMode: true}),
testWatcher: JSON.parse(
JSON.stringify(new TestWatcher({isWatchMode: true})),
),
});
});

Expand All @@ -167,7 +171,9 @@ describe('Watch mode flows', () => {
globalConfig,
onComplete: expect.any(Function),
outputStream: pipe,
testWatcher: new TestWatcher({isWatchMode: true}),
testWatcher: JSON.parse(
JSON.stringify(new TestWatcher({isWatchMode: true})),
),
});
expect(pipe.write.mock.calls.reverse()[0]).toMatchSnapshot();
});
Expand All @@ -183,7 +189,9 @@ describe('Watch mode flows', () => {
globalConfig,
onComplete: expect.any(Function),
outputStream: pipe,
testWatcher: new TestWatcher({isWatchMode: true}),
testWatcher: JSON.parse(
JSON.stringify(new TestWatcher({isWatchMode: true})),
),
});
expect(pipe.write.mock.calls.reverse()[0]).toMatchSnapshot();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@jest/types": "^28.0.0-alpha.8",
"@types/node": "*",
"chalk": "^4.0.0",
"emittery": "^0.8.1",
"emittery": "^0.10.2",
"graceful-fs": "^4.2.9",
"jest-docblock": "^28.0.0-alpha.6",
"jest-environment-node": "^28.0.0-alpha.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/pretty-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@jest/schemas": "^28.0.0-alpha.3",
"ansi-regex": "^5.0.1",
"ansi-styles": "^5.0.0",
"react-is": "^17.0.1"
"react-is": "^18.0.0"
},
"devDependencies": {
"@types/react": "*",
Expand Down
Loading

0 comments on commit a5f1ef4

Please sign in to comment.