mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
chore: 🤖 Updating jest configuration
Included types for jest-extended and exceptions for es module tests
This commit is contained in:
parent
ff9e7878ec
commit
ca9b66f096
1
global.d.ts
vendored
Normal file
1
global.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
import 'jest-extended';
|
||||
26
jest.config.js
Normal file
26
jest.config.js
Normal file
@ -0,0 +1,26 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
|
||||
testEnvironment: 'node',
|
||||
testRegex: 'test\\/.*\\.ts$',
|
||||
testMatch: null,
|
||||
testURL: 'http://localhost/',
|
||||
testTimeout: 15000,
|
||||
|
||||
coverageDirectory: 'coverage',
|
||||
collectCoverage: true,
|
||||
|
||||
setupFilesAfterEnv: ['jest-extended'],
|
||||
|
||||
moduleNameMapper: {
|
||||
'^ky$': require.resolve('ky').replace('index.js', 'umd.js'),
|
||||
},
|
||||
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
diagnostics: {
|
||||
ignoreCodes: [2339],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -1,20 +0,0 @@
|
||||
{
|
||||
"preset": "ts-jest",
|
||||
|
||||
"testEnvironment": "node",
|
||||
"testRegex": "test\\/.*\\.ts$",
|
||||
"testMatch": null,
|
||||
"testURL": "http://localhost/",
|
||||
|
||||
"coverageDirectory": "./coverage/",
|
||||
|
||||
"setupFilesAfterEnv": ["jest-extended"],
|
||||
|
||||
"globals": {
|
||||
"ts-jest": {
|
||||
"diagnostics": {
|
||||
"ignoreCodes": [2339]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user