forked from stylify/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (24 loc) · 768 Bytes
/
jest.config.js
File metadata and controls
26 lines (24 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const packagesToTest = [
'astro', 'bundler', 'nuxt', 'nuxt-module', 'stylify', 'unplugin'
];
const packagesDirectoryJoin = packagesToTest.join('|');
module.exports = {
verbose: true,
testRegex: `packages/(${packagesDirectoryJoin})/tests/jest/.*\\.test.ts$`,
testEnvironment: 'jest-environment-jsdom',
moduleFileExtensions: ['js', 'ts', 'mjs'],
preset: 'ts-jest',
transform: {
'^.+\\.(js|ts|mjs)?$': 'ts-jest'
},
moduleNameMapper: {
'\\.(svg|ttf|woff|woff2)$': './tests/jest/__mocks/fileMock.js',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy'
},
collectCoverageFrom: [
`packages/(${packagesDirectoryJoin})/src/**/*.ts`
],
coveragePathIgnorePatterns: [
'packages/stylify/src/(stylify.native.browser|stylify.browser|Runtime|Stylify).ts'
]
};