kibana/packages/kbn-securitysolution-exception-list-components/jest.config.js
Wafaa Nasr 348ed233c3
[Security Solution][Exceptions] - Create/ refactor Exception-List common's components in @kbn/securitysolution-exception-list-components (#143363)
* feat: add list header components + refactoring

* add tests for comments and conditions components

* remove unused var

* complete tests for exception_item_card, excpetion_items, empty_viewer_state

* add test for useExceptionItemCard hook

* add tests for generateLinedRulesMenuItems

* add readme and index.md

* Update index.md

* remove unused file

* remove unused file

* add tests for Header_menu

* extract security mocks to a file

* test for header

* add missing tests

* fix tests

* fix text_with_edit dataTestSubj

* apply rewview comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-19 19:33:17 +02:00

28 lines
1.4 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
* 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.
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-securitysolution-exception-list-components'],
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/packages/kbn-securitysolution-exception-list-components/**/*.{ts,tsx}',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/*.test',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/types/*',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/*.type',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/*.styles',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/mocks/*',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/*.config',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/translations',
'!<rootDir>/packages/kbn-securitysolution-exception-list-components/**/types/*',
],
setupFilesAfterEnv: [
'<rootDir>/packages/kbn-securitysolution-exception-list-components/setup_test.ts',
],
};