forked from Ecodev/natural-gallery-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
23 lines (23 loc) · 806 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// https://gist.github.com/wldcordeiro/6dc2eb97a26a52d548ed4aa86f2fc5c0
module.exports = {
projects: [
{
displayName: 'E2E',
preset: "jest-puppeteer",
globals: {
PATH: "http://localhost:4444"
},
testMatch: ['<rootDir>/testing/e2e/**/*.spec.js'],
},
{
displayName: 'UNIT',
preset: 'ts-jest',
testMatch: ['<rootDir>/testing/unit/**/*.spec.ts'],
testEnvironment: 'node',
moduleNameMapper: {
"^.+\\.(css|scss)$": "<rootDir>/testing/mocks/styleMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/testing/mocks/fileMocks.js",
},
}
]
};