mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
- Configure CI to run on macOS-latest - Test with Node.js 20.x and 22.x - Run npm build and tests on push/PR 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
No EOL
669 B
JavaScript
27 lines
No EOL
669 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest/presets/default-esm',
|
|
testEnvironment: 'node',
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
useESM: true,
|
|
tsconfig: 'tsconfig.jest.json'
|
|
}]
|
|
},
|
|
moduleNameMapper: {
|
|
'^(\.{1,2}/.*)\.js$': '$1',
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
testMatch: [
|
|
'**/tests/unit/**/*.test.ts',
|
|
'**/tests/integration/**/*.test.ts',
|
|
],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.d.ts',
|
|
'!src/index.ts'
|
|
],
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov', 'html']
|
|
};
|