soapbox/jest.config.js

38 wiersze
1020 B
JavaScript

module.exports = {
'projects': [
'<rootDir>/app/gabsocial',
],
'testPathIgnorePatterns': [
'<rootDir>/node_modules/',
'<rootDir>/vendor/',
'<rootDir>/config/',
'<rootDir>/log/',
'<rootDir>/static/',
'<rootDir>/tmp/',
'<rootDir>/webpack/',
// Temporarily disable these tests
// https://gitlab.com/soapbox-pub/soapbox-fe/-/issues/34
'<rootDir>/app/gabsocial/components/__tests__/avatar-test.js',
'<rootDir>/app/gabsocial/components/__tests__/avatar_overlay-test.js',
],
'setupFiles': [
'raf/polyfill',
],
'setupFilesAfterEnv': [
'<rootDir>/app/gabsocial/test_setup.js',
],
'collectCoverageFrom': [
'app/gabsocial/**/*.js',
'!app/gabsocial/features/emoji/emoji_compressed.js',
'!app/gabsocial/locales/locale-data/*.js',
'!app/gabsocial/service_worker/entry.js',
'!app/gabsocial/test_setup.js',
],
'coverageDirectory': '<rootDir>/coverage',
'moduleDirectories': [
'<rootDir>/node_modules',
'<rootDir>/app',
],
};