forked from gethue/hue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
28 lines (28 loc) · 1.36 KB
/
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
24
25
26
27
28
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'vue'],
transform: {
'^.+\\.(js|ts|jsx|tsx)$': 'babel-jest',
'^.+\\.vue$': '@vue/vue3-jest',
},
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
'^\\./desktop/core/src/desktop/js/(.*)$': '<rootDir>/desktop/core/src/desktop/js/$1'
},
moduleDirectories: ['node_modules', 'desktop/core/src/desktop/js'],
modulePaths: ['desktop/core/src/desktop/js'],
testMatch: ['<rootDir>/desktop/core/src/desktop/js/**/*.test.(js|jsx|ts|tsx)'],
testEnvironment: 'jest-environment-jsdom',
testURL: 'https://www.gethue.com/hue',
setupFilesAfterEnv: ['<rootDir>/desktop/core/src/desktop/js/jest/jest.init.js'],
watchPathIgnorePatterns: ['<rootDir>/desktop/core/src/desktop/static'],
testPathIgnorePatterns: [
'<rootDir>/desktop/core/src/desktop/js/parse/sql/ksql/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/elasticsearch/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/phoenix/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/druid/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/presto/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/calcite/test',
'<rootDir>/desktop/core/src/desktop/js/parse/sql/flink/test'
],
collectCoverageFrom: ['<rootDir>/desktop/core/src/desktop/js/**/*.{js,jsx,vue}']
};