Commit 8266e578 authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

Configure Jest with Typescript

parent de2c6903
......@@ -3,6 +3,7 @@ module.exports = {
moduleNameMapper: {
'^@webalt/react(.*)$': '<rootDir>/src/$1',
},
preset: 'ts-jest/presets/js-with-ts',
roots: ['<rootDir>/src'],
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
};
{
"compilerOptions": {
"allowJs": true,
"baseUrl": "./",
"esModuleInterop": true,
"jsx": "react",
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment