Reimplement tests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/test'],
|
||||
moduleNameMapper: {
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||||
},
|
||||
transform: {
|
||||
'^.+\\.tsx?$': ['ts-jest', {
|
||||
tsconfig: {
|
||||
strict: true,
|
||||
target: 'ES2017',
|
||||
module: 'CommonJS',
|
||||
moduleResolution: 'node',
|
||||
esModuleInterop: true,
|
||||
lib: ['ES2019', 'DOM'],
|
||||
types: ['jest'],
|
||||
},
|
||||
}],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user