mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
* Use hosts instead of url for elasticsearch. * Adds jest integration tests to run in xpack intake. * Reverting the exclusion of throwing errors in tests. * Strange test that seems to fail without console error exception being thrown. * Fix issues with wrong props for EuiInMemoryTable. * Removes the masking of console errors in tests.
74 lines
2 KiB
JavaScript
74 lines
2 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
export default {
|
|
rootDir: '../../',
|
|
roots: [
|
|
'<rootDir>/plugins',
|
|
'<rootDir>/server',
|
|
'<rootDir>/common',
|
|
'<rootDir>/test_utils/jest/integration_tests',
|
|
],
|
|
collectCoverageFrom: [
|
|
'plugins/**/*.js',
|
|
'common/**/*.js',
|
|
'server/**/*.js',
|
|
],
|
|
moduleNameMapper: {
|
|
'^ui/(.*)': '<rootDir>**/public/$1',
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/dev/jest/mocks/file_mock.js',
|
|
'\\.(css|less|scss)$': '<rootDir>/../src/dev/jest/mocks/style_mock.js',
|
|
},
|
|
setupFiles: [
|
|
'<rootDir>/../src/dev/jest/setup/babel_polyfill.js',
|
|
'<rootDir>/../src/dev/jest/setup/polyfills.js',
|
|
'<rootDir>/../src/dev/jest/setup/enzyme.js',
|
|
],
|
|
coverageDirectory: '<rootDir>/../target/jest-coverage',
|
|
coverageReporters: [
|
|
'html',
|
|
],
|
|
globals: {
|
|
'ts-jest': {
|
|
skipBabel: true,
|
|
},
|
|
},
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'json',
|
|
'ts',
|
|
'tsx',
|
|
],
|
|
modulePathIgnorePatterns: [
|
|
'__fixtures__/',
|
|
'target/',
|
|
],
|
|
testMatch: [
|
|
'**/*.test.{js,ts,tsx}'
|
|
],
|
|
testPathIgnorePatterns: [
|
|
'<rootDir>/packages/kbn-ui-framework/(dist|doc_site|generator-kui)/',
|
|
'<rootDir>/packages/kbn-pm/dist/',
|
|
'integration_tests/'
|
|
],
|
|
transform: {
|
|
'^.+\\.js$': '<rootDir>/../src/dev/jest/babel_transform.js',
|
|
'^.+\\.tsx?$': '<rootDir>/../src/dev/jest/ts_transform.js',
|
|
'^.+\\.txt?$': 'jest-raw-loader',
|
|
'^.+\\.html?$': 'jest-raw-loader',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'[/\\\\]node_modules[/\\\\].+\\.js$',
|
|
'packages/kbn-pm/dist/index.js'
|
|
],
|
|
snapshotSerializers: [
|
|
'<rootDir>/../node_modules/enzyme-to-json/serializer',
|
|
],
|
|
reporters: [
|
|
'default',
|
|
'<rootDir>/../src/dev/jest/junit_reporter.js',
|
|
],
|
|
};
|