mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 05:49:02 +00:00
27 lines
644 B
JavaScript
27 lines
644 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/__tests__/**/*.test.ts', '**/?(*.)+(spec|test).ts'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/__tests__/**',
|
|
],
|
|
moduleNameMapper: {
|
|
'^obsidian$': '<rootDir>/node_modules/obsidian',
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: {
|
|
module: 'ESNext',
|
|
target: 'ES6',
|
|
moduleResolution: 'node',
|
|
esModuleInterop: true,
|
|
allowSyntheticDefaultImports: true,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|