Skip to content
Snippets Groups Projects
jest.web.config.js 494 B
Newer Older
  • Learn to ignore specific revisions
  • James Long's avatar
    James Long committed
    module.exports = {
    
      moduleFileExtensions: [
        'testing.js',
    
        'testing.ts',
    
        'web.ts',
        'web.tsx',
    
        'mjs',
        'js',
        'ts',
        'tsx',
        'json',
      ],
    
    James Long's avatar
    James Long committed
      testEnvironment: 'jsdom',
      testPathIgnorePatterns: ['/node_modules/', '/lib/'].filter(Boolean),
    
      testMatch: ['**/*.web.test.(js|ts|tsx)'],
    
      transformIgnorePatterns: ['/node_modules/(?!absurd-sql)'],
    
      transform: {
    
        '\\.pegjs$': '<rootDir>/peg-transform.mjs',
    
        '^.+\\.(t|j)sx?$': '@swc/jest',
    
    James Long's avatar
    James Long committed
    };