Skip to content

Commit 635ac97

Browse files
authored
Merge pull request #1856 from maxmind/dependabot/npm_and_yarn/typescript-6.0.2
Bump typescript from 5.9.3 to 6.0.2
2 parents 2642286 + 247ce73 commit 635ac97

7 files changed

Lines changed: 29 additions & 12 deletions

File tree

e2e/ts/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"esModuleInterop": true,
4+
"module": "commonjs",
5+
"strict": true,
6+
"target": "es6"
7+
}
8+
}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
},
1010
roots: ['<rootDir>/src'],
1111
transform: {
12-
'^.+\\.tsx?$': 'ts-jest',
12+
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
1313
},
1414
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
1515
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"prettier": "^3.0.0",
3636
"ts-jest": "^29.1.0",
3737
"typedoc": "^0.28.1",
38-
"typescript": "^5.0.2",
38+
"typescript": "^6.0.2",
3939
"typescript-eslint": "^8.5.0"
4040
},
4141
"publishConfig": {

src/webServiceClient.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const fullPath = (path: string) => `/minfraud/v2.0/${path}`;
2424
const client = new Client(auth.user, auth.pass);
2525

2626
describe('WebServiceClient', () => {
27+
afterEach(() => {
28+
nock.cleanAll();
29+
nock.abortPendingRequests();
30+
});
31+
2732
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2833
const factors = structuredClone(insights) as any;
2934
factors.response.full.risk_score_reasons = structuredClone(reasons);
@@ -901,10 +906,6 @@ describe('WebServiceClient', () => {
901906
});
902907

903908
describe('error handling', () => {
904-
afterEach(() => {
905-
nock.cleanAll();
906-
});
907-
908909
const transaction = new Transaction({
909910
device: new Device({
910911
ipAddress: '1.1.1.1',

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
33
"allowUnreachableCode": true,
4-
"baseUrl": ".",
54
"allowJs": false,
65
"declaration": true,
76
"esModuleInterop": true,
8-
"lib": ["es2015", "es2016", "es2017"],
7+
"lib": ["es2022"],
8+
"types": ["node"],
99
"module": "commonjs",
1010
"outDir": "dist",
1111
"pretty": true,

tsconfig.test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"types": ["jest", "node"]
5+
},
6+
"include": ["src"],
7+
"exclude": []
8+
}

0 commit comments

Comments
 (0)