Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
add ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 18, 2021
1 parent 9f1f191 commit 5ed6467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-jasmine2/src/PCancelable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class PCancelable<T> extends Promise<T> {
reject: (reason?: unknown) => void,
) => void,
) {
// @ts-expect-error
super(resolve => resolve());

this._promise = new Promise((resolve, reject) => {
Expand All @@ -37,6 +38,7 @@ export default class PCancelable<T> extends Promise<T> {
},
val => {
this._pending = false;
// @ts-expect-error
resolve(val);
},
err => {
Expand Down

0 comments on commit 5ed6467

Please sign in to comment.