forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NA): introduce preset for jest-integration tests on @kbn/test (e…
…lastic#105144) * chore(NA): introduce preset for jest-integration tests on @kbn/test * chore(NA): fix lockfile * chore(NA): fix ci * fix tests (#14) Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
02cd508
commit 977039c
Showing
4 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
const preset = require('../jest-preset'); | ||
|
||
module.exports = { | ||
...preset, | ||
testMatch: ['**/integration_tests**/*.test.{js,mjs,ts,tsx}'], | ||
testPathIgnorePatterns: preset.testPathIgnorePatterns.filter( | ||
(pattern) => !pattern.includes('integration_tests') | ||
), | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/node_modules/@kbn/test/target_node/jest/setup/after_env.integration.js', | ||
'<rootDir>/node_modules/@kbn/test/target_node/jest/setup/mocks.js', | ||
], | ||
reporters: [ | ||
'default', | ||
['@kbn/test/target_node/jest/junit_reporter', { reportName: 'Jest Integration Tests' }], | ||
], | ||
coverageReporters: !!process.env.CI | ||
? [['json', { file: 'jest-integration.json' }]] | ||
: ['html', 'text'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters