Skip to content

Commit 0c2822b

Browse files
author
Raice Hannay
committed
update dependencies
1 parent cb37d20 commit 0c2822b

File tree

4 files changed

+1275
-1271
lines changed

4 files changed

+1275
-1271
lines changed

jest.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ module.exports = {
66
branches: 100,
77
functions: 100,
88
lines: 100,
9-
statements: 100
10-
}
9+
statements: 100,
10+
},
1111
},
1212
globals: {
1313
"ts-jest": {
1414
tsConfig: {
15-
target: "es6"
16-
}
17-
}
15+
target: "es6",
16+
},
17+
},
1818
},
1919
moduleDirectories: ["node_modules"],
2020
preset: "ts-jest",
@@ -23,5 +23,5 @@ module.exports = {
2323
testMatch: ["**/*.test.{ts,tsx}"],
2424
testURL: "http://localhost",
2525
transformIgnorePatterns: ["/node_modules/.+\\.js$"],
26-
verbose: true
26+
verbose: true,
2727
};

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Raice Hannay <[email protected]>",
44
"description": "A set of useful mocks and helpers for the Jest unit testing framework.",
55
"license": "ISC",
6-
"version": "1.0.3",
6+
"version": "1.0.4",
77
"keywords": [
88
"jest",
99
"mock",
@@ -44,18 +44,18 @@
4444
"jest": ">= 24.9.0"
4545
},
4646
"devDependencies": {
47-
"@types/jest": "^24.0.23",
48-
"@typescript-eslint/eslint-plugin": "^2.22.0",
49-
"cross-env": "^6.0.3",
47+
"@types/jest": "^25.1.4",
48+
"@typescript-eslint/eslint-plugin": "^2.26.0",
49+
"cross-env": "^7.0.2",
5050
"eslint": "^6.8.0",
51-
"eslint-config-voodoocreation": "^1.0.8",
52-
"eslint-plugin-import": "^2.20.1",
53-
"eslint-plugin-jest": "^23.8.1",
51+
"eslint-config-voodoocreation": "^1.0.9",
52+
"eslint-plugin-import": "^2.20.2",
53+
"eslint-plugin-jest": "^23.8.2",
5454
"eslint-plugin-prefer-arrow": "^1.1.7",
55-
"jest": "^24.9.0",
55+
"jest": "^25.2.4",
5656
"npm-run-all": "^4.1.5",
57-
"prettier": "^1.19.1",
58-
"ts-jest": "^24.2.0",
59-
"typescript": "^3.7.3"
57+
"prettier": "^2.0.2",
58+
"ts-jest": "^25.3.0",
59+
"typescript": "^3.8.3"
6060
}
6161
}

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const findCall = (mock: jest.Mock, ...args: any[]) =>
99
);
1010

1111
export const resolvedPromise = <T>(value: T) =>
12-
new Promise<T>(resolve => resolve(value));
12+
new Promise<T>((resolve) => resolve(value));
1313

1414
export const rejectedPromise = (error: string | Error) =>
1515
new Promise<any>((_, reject) =>

0 commit comments

Comments
 (0)