diff options
author | Vitaly Takmazov | 2023-03-05 16:32:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-03-05 16:32:12 +0300 |
commit | 79d769f3d29d1827d7744db3a26f02bc0d95d792 (patch) | |
tree | 645eef66702817b3b92cd3ce555ecb7c44717e59 /jest.config.js | |
parent | 88efdf2cde176a1f42be5183d42c34b7ad91b266 (diff) |
Merge vnext build configuration
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 00000000..ffc58e1d --- /dev/null +++ b/jest.config.js @@ -0,0 +1,12 @@ +/** @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' + }, + testEnvironment: 'jsdom', + setupFilesAfterEnv: ['<rootDir>/setupTests.js'] +}; |