Skip to content

Commit 9e62422

Browse files
authored
fixing deprecation warning for testURL -> testEnvironmentOptions.url (#224)
addressing ```bash ● Deprecation Warning: Option "testURL" was replaced by passing the URL via "testEnvironmentOptions.url". Please update your configuration. Configuration Documentation: https://jestjs.io/docs/configuration ``` This was introduced by the latest updates on jest and ts-jest.
1 parent a2a3ec8 commit 9e62422

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

jest.config.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@ process.env.TZ = 'UTC';
33
module.exports = {
44
globals: {
55
'ts-jest': {
6-
disableSourceMapSupport: true
7-
}
6+
disableSourceMapSupport: true,
7+
},
88
},
99
verbose: true,
1010
transform: {
11-
'^.+\\.tsx?$': 'ts-jest'
11+
'^.+\\.tsx?$': 'ts-jest',
12+
},
13+
testEnvironmentOptions: {
14+
url: 'http://localhost',
1215
},
1316
preset: 'ts-jest',
1417
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
15-
testURL: 'http://localhost',
1618
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
1719
testMatch: ['**/*.spec.ts'],
1820
collectCoverage: true,
1921
collectCoverageFrom: ['src/*.ts', '!./index.ts'],
20-
coverageDirectory: './coverage/'
22+
coverageDirectory: './coverage/',
2123
};

0 commit comments

Comments
 (0)