-
Notifications
You must be signed in to change notification settings - Fork 371
/
jest.config.js
32 lines (32 loc) · 1.55 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
29
30
31
32
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'vue'],
transformIgnorePatterns: ['node_modules/(?!(cuix|@cloudera/cuix-core)/)'],
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',
'^@vue/test-utils': '<rootDir>/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js'
},
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',
testEnvironmentOptions: {
url: '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}']
};