aboutsummaryrefslogtreecommitdiff
path: root/jest.config.js
blob: abaffdbd9c2c6d8b6ce8ab00c798321c7b1badfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/** @type {import('jest').Config} */
module.exports = {
    'moduleNameMapper': {
        '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
        '\\.(css|less|sass|scss)$': '<rootDir>/__mocks__/styleMock.js'
    },
    'transform': {
        '^.+\\.js$': '@swc/jest'
    },
    transformIgnorePatterns: ['!node_modules/'],
    testEnvironment: 'jsdom',
    setupFilesAfterEnv: ['<rootDir>/setupTests.js']
}