forked from webpack-contrib/image-minimizer-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
18 lines (17 loc) · 812 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"use strict";
module.exports = {
testEnvironment: "node",
moduleNameMapper: {
"^imagemin$": "<rootDir>/test/bundled/imagemin/index.js",
"^imagemin-svgo$": "<rootDir>/test/bundled/imagemin-svgo/index.js",
"^node:buffer$": "<rootDir>/test/helpers/built-in-modules/buffer.js",
"^node:fs$": "<rootDir>/test/helpers/built-in-modules/fs.js",
"^node:util$": "<rootDir>/test/helpers/built-in-modules/util.js",
"^node:path$": "<rootDir>/test/helpers/built-in-modules/path.js",
"^node:stream$": "<rootDir>/test/helpers/built-in-modules/stream.js",
"^node:url$": "<rootDir>/test/helpers/built-in-modules/url.js",
"^node:process$": "<rootDir>/test/helpers/built-in-modules/url.js",
},
collectCoverageFrom: ["src/**/*.{js,mjs,jsx}"],
globalSetup: "<rootDir>/globalSetup.js",
};