jest.unit.config.js 775 B

12345678910111213141516171819202122232425
  1. const path = require('path');
  2. module.exports = {
  3. rootDir: path.join(__dirname, '..', '..'),
  4. testEnvironment: 'jsdom',
  5. testMatch: [
  6. '**/test/unit/*.js?(x)',
  7. '**/test/unit/**/*.js?(x)',
  8. ],
  9. // testMatch: ['**/test/unit/core/plugins/auth/actions.js'],
  10. setupFilesAfterEnv: ['<rootDir>/test/unit/setup.js'],
  11. testPathIgnorePatterns: [
  12. '<rootDir>/node_modules/',
  13. '<rootDir>/test/build-artifacts/',
  14. '<rootDir>/test/mocha',
  15. '<rootDir>/test/unit/setup.js',
  16. '<rootDir>/test/unit/xss/anchor-target-rel/online-validator-badge.jsx',
  17. '<rootDir>/test/unit/components/online-validator-badge.jsx',
  18. '<rootDir>/test/unit/components/live-response.jsx',
  19. ],
  20. transformIgnorePatterns: [
  21. '/node_modules/(?!(react-syntax-highlighter)/)'
  22. ]
  23. };