1a63880d01
changing jest.config.js transform option from - transform: { '^.+\\.ts?$': 'ts-jest' }, to transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }], },
7 lines
261 B
JavaScript
7 lines
261 B
JavaScript
module.exports = {
|
|
transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }], },
|
|
testEnvironment: 'node',
|
|
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
};
|