mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
15 lines
472 B
JavaScript
15 lines
472 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
|
transform: {
|
|
'^.+\\.(js|jsx|ts|tsx)$': 'ts-jest',
|
|
},
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
testPathIgnorePatterns: ['/node_modules/'],
|
|
};
|