2018-05-29 05:06:30 +02:00
|
|
|
/*
|
2021-01-20 02:54:11 +01:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* and the Server Side Public License, v 1; you may not use this file except in
|
|
|
|
* compliance with, at your election, the Elastic License or the Server Side
|
|
|
|
* Public License, v 1.
|
2018-05-29 05:06:30 +02:00
|
|
|
*/
|
|
|
|
|
2020-12-02 23:02:21 +01:00
|
|
|
const preset = require('@kbn/test/jest-preset');
|
2018-02-19 17:02:01 +01:00
|
|
|
|
2020-12-02 23:02:21 +01:00
|
|
|
module.exports = {
|
|
|
|
preset: '@kbn/test',
|
|
|
|
rootDir: '.',
|
|
|
|
roots: ['<rootDir>/src', '<rootDir>/packages'],
|
|
|
|
testMatch: ['**/integration_tests**/*.test.{js,mjs,ts,tsx}'],
|
|
|
|
testRunner: 'jasmine2',
|
2020-11-13 22:25:06 +01:00
|
|
|
testPathIgnorePatterns: preset.testPathIgnorePatterns.filter(
|
2020-05-22 10:08:13 +02:00
|
|
|
(pattern) => !pattern.includes('integration_tests')
|
2018-02-19 17:02:01 +01:00
|
|
|
),
|
|
|
|
reporters: [
|
|
|
|
'default',
|
2020-10-12 15:36:04 +02:00
|
|
|
[
|
|
|
|
'<rootDir>/packages/kbn-test/target/jest/junit_reporter',
|
|
|
|
{ reportName: 'Jest Integration Tests' },
|
|
|
|
],
|
2018-02-19 17:02:01 +01:00
|
|
|
],
|
2021-01-28 19:17:22 +01:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/packages/kbn-test/target/jest/setup/after_env.integration.js'],
|
2018-02-19 17:02:01 +01:00
|
|
|
};
|