Skip to content

Commit

Permalink
chore: bump emittery
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 18, 2021
1 parent ce80f77 commit 4fcb354
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/jest-core/package.json
Expand Up @@ -17,7 +17,7 @@
"@types/node": "*",
"ansi-escapes": "^4.2.1",
"chalk": "^4.0.0",
"emittery": "0.8.0",
"emittery": "^0.8.1",
"exit": "^0.1.2",
"graceful-fs": "^4.2.4",
"jest-changed-files": "^27.0.0-next.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/package.json
Expand Up @@ -21,7 +21,7 @@
"@jest/types": "^27.0.0-next.1",
"@types/node": "*",
"chalk": "^4.0.0",
"emittery": "0.8.0",
"emittery": "^0.8.1",
"exit": "^0.1.2",
"graceful-fs": "^4.2.4",
"jest-config": "^27.0.0-next.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/jest-runner/src/index.ts
Expand Up @@ -282,7 +282,12 @@ export default class TestRunner {
return Promise.race([runAllTests, onInterrupt]).then(cleanup, cleanup);
}

on = this.eventEmitter.on.bind(this.eventEmitter);
on<Name extends keyof TestEvents>(
eventName: Name,
listener: (eventData: TestEvents[Name]) => void | Promise<void>,
): Emittery.UnsubscribeFn {
return this.eventEmitter.on(eventName, listener);
}
}

class CancelRun extends Error {
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Expand Up @@ -1769,7 +1769,7 @@ __metadata:
"@types/rimraf": ^3.0.0
ansi-escapes: ^4.2.1
chalk: ^4.0.0
emittery: 0.8.0
emittery: ^0.8.1
exit: ^0.1.2
graceful-fs: ^4.2.4
jest-changed-files: ^27.0.0-next.1
Expand Down Expand Up @@ -7679,10 +7679,10 @@ __metadata:
languageName: node
linkType: hard

"emittery@npm:0.8.0":
version: 0.8.0
resolution: "emittery@npm:0.8.0"
checksum: 4429ab522bb043473e2e1465e878cef1f17a4f98f2e831172a1598d541ea8faa25bbfc4f76fe54898e3e0e20f6ee170e69180842326d01b86431ca2e0411383c
"emittery@npm:^0.8.1":
version: 0.8.1
resolution: "emittery@npm:0.8.1"
checksum: 1c9cd9a1045ce8e50e41b4433a6d3adf109cbb7585fe5d504399f2a035f423adb9b9bc6735aad672368575532007948d4483645e188fe99759c302a39542479d
languageName: node
linkType: hard

Expand Down Expand Up @@ -12104,7 +12104,7 @@ fsevents@^1.2.7:
"@types/node": "*"
"@types/source-map-support": ^0.5.0
chalk: ^4.0.0
emittery: 0.8.0
emittery: ^0.8.1
exit: ^0.1.2
graceful-fs: ^4.2.4
jest-config: ^27.0.0-next.2
Expand Down

0 comments on commit 4fcb354

Please sign in to comment.