Files
remark42/frontend/jest.config.js
T
Konstantin KrivleniaandUmputun 17be003652 #378 Emoji suggestions (#546)
* #378 add emoji suggestion

* #378 use lazy load for nodeEmoji

* #378 apply remark styles only for light theme

* #378 add dark theme

* #378 fix test

* #378 use permanent class names

*  #378 flip if else for readability
2020-01-13 18:26:32 -06:00

19 lines
567 B
JavaScript

module.exports = {
roots: ['<rootDir>/app/'],
transform: {
'^.+\\.ts(x?)$': 'ts-jest',
'^.+\\.js(x?)$': 'babel-jest',
},
testMatch: null,
testRegex: '(\\.|/)(test|spec)\\.(j|t)s(x?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'\\.module.pcss': `identity-obj-proxy`,
'\\.scss$': '<rootDir>/app/testUtils/mockStyles.js',
'@app/(.*)': '<rootDir>/app/$1',
'^react$': 'preact/compat',
'^react-dom$': 'preact/compat',
},
setupFilesAfterEnv: ['<rootDir>/app/testUtils/index.ts'],
};