mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
807 B
JavaScript
25 lines
807 B
JavaScript
const regeneratorRuntime = require('regenerator-runtime');
|
|
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss)$': 'identity-obj-proxy',
|
|
},
|
|
// projects: ['<rootDir>/web/'], // https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
|
|
rootDir: '.',
|
|
testRegex: '.*\\.(test|spec)\\.tsx?$',
|
|
testPathIgnorePatterns: ['/node_modules/', '/e2e/cypress/'],
|
|
transform: {
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
|
'<rootDir>/test/fileTransformer.js',
|
|
},
|
|
transformIgnorePatterns: ['/node_modules/'],
|
|
setupFiles: ['<rootDir>/test/setup.js'],
|
|
setupFilesAfterEnv: [],
|
|
globals: {
|
|
window: {},
|
|
},
|
|
};
|