soapbox/jest.config.js

34 wiersze
799 B
JavaScript

module.exports = {
'projects': [
'<rootDir>/app/soapbox',
],
'testPathIgnorePatterns': [
'<rootDir>/node_modules/',
'<rootDir>/vendor/',
'<rootDir>/config/',
'<rootDir>/log/',
'<rootDir>/static/',
'<rootDir>/tmp/',
'<rootDir>/webpack/',
],
'setupFiles': [
'raf/polyfill',
],
'setupFilesAfterEnv': [
'<rootDir>/app/soapbox/test_setup.js',
],
'collectCoverageFrom': [
'app/soapbox/**/*.js',
'!app/soapbox/features/emoji/emoji_compressed.js',
'!app/soapbox/locales/locale-data/*.js',
'!app/soapbox/service_worker/entry.js',
'!app/soapbox/test_setup.js',
'!app/soapbox/test_helpers.js',
],
'coverageDirectory': '<rootDir>/coverage',
'moduleDirectories': [
'<rootDir>/node_modules',
'<rootDir>/app',
],
};