From 79d769f3d29d1827d7744db3a26f02bc0d95d792 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 5 Mar 2023 16:32:12 +0300 Subject: Merge vnext build configuration --- jest.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jest.config.js (limited to 'jest.config.js') 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)$': '/__mocks__/fileMock.js', + '\\.(css|less|sass|scss)$': '/__mocks__/styleMock.js' + }, + 'transform': { + '^.+\\.js$': '@swc/jest' + }, + testEnvironment: 'jsdom', + setupFilesAfterEnv: ['/setupTests.js'] +}; -- cgit v1.2.3