aboutsummaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js12
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']
+};