mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
* fix(next): publish node-esm-safe imports * test(next): guard published esm specifiers
17 lines
485 B
JavaScript
17 lines
485 B
JavaScript
/** @type {import('jest').Config} */
|
|
export default {
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
testMatch: ['<rootDir>/tests/**/*.test.{ts,tsx}'],
|
|
collectCoverage: true,
|
|
coverageDirectory: 'coverage',
|
|
clearMocks: true,
|
|
setupFilesAfterEnv: ['./tests/setup.ts'],
|
|
}
|