14 lines
399 B
JavaScript
14 lines
399 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
// Unit tests live under src/. test-playwright/ holds Playwright specs,
|
|
// which use a different runner and fail if Jest collects them.
|
|
roots: ['<rootDir>/src'],
|
|
moduleFileExtensions: ['ts', 'js', 'json', 'vue'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest'
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
}
|
|
};
|