forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.conf.js
More file actions
17 lines (16 loc) · 781 Bytes
/
jest.conf.js
File metadata and controls
17 lines (16 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const baseConfig = require('kolibri-jest-config/jest.conf');
module.exports = Object.assign(baseConfig, {
// Only match *.spec.js files - exclude utility files in __tests__ folders
testMatch: ['**/__tests__/**/*.spec.js', '**/?(*.)spec.js'],
// Make sure we transpile any raw vue or ES6 files
// Pattern handles both yarn flat structure and pnpm nested structure
transformIgnorePatterns: [
'node_modules/(?!(\\.pnpm/(keen-ui|epubjs|kolibri-common|kolibri|kolibri-design-system|kolibri-constants|uuid)|keen-ui|epubjs|kolibri-common|kolibri|kolibri-design-system|kolibri-constants|uuid))',
],
collectCoverageFrom: [
'kolibri/**/frontend/**/*.{js,vue}',
'!**/node_modules/**',
'kolibri/**/**/frontend/**/*.{js,vue}',
'packages/*/src/*.js',
],
});