aboutsummaryrefslogtreecommitdiff
path: root/vnext/jest.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-28 15:52:57 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit58f504e34fe5c37056c4e74ed8204bd0d10cb994 (patch)
tree59c9daf1be270793c294c78a079d3bc73b4d45e7 /vnext/jest.config.js
parentd1ae7c0766c1e3319b4a75164123ffd364fd2389 (diff)
Merge Jest configuration from Next version
Diffstat (limited to 'vnext/jest.config.js')
-rw-r--r--vnext/jest.config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnext/jest.config.js b/vnext/jest.config.js
new file mode 100644
index 00000000..8f098bcb
--- /dev/null
+++ b/vnext/jest.config.js
@@ -0,0 +1,11 @@
+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$': 'babel-jest'
+ },
+ testEnvironment: 'jsdom',
+ setupFilesAfterEnv: ['<rootDir>/setupTests.js']
+};