added babel to convert es modules to cjs

This commit is contained in:
Aster Fialla
2026-02-17 20:48:44 -05:00
parent 164ff7d8b6
commit a4804c2ea7
4 changed files with 19 additions and 25 deletions

11
jest.config.js Normal file
View File

@@ -0,0 +1,11 @@
// jest.config.js
module.exports = {
clearMocks: true,
collectCoverage: true,
coverageDirectory: "coverage",
setupFiles: ["<rootDir>/jest.setup.js"], // path to a setup module to configure the testing environment before each test
verbose: true,
transform: {
"^.+\\.[t|j]sx?$": require.resolve('babel-jest')
},
};