mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[chore] remove unused nyc configs and dependencies (#200909)](https://github.com/elastic/kibana/pull/200909) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2024-11-20T15:41:30Z","message":"[chore] remove unused nyc configs and dependencies (#200909)\n\n## Summary\r\n\r\nnyc (istanbuljs) cleanup as we no longer collect code coverage for\r\nfunctional tests","sha":"88a280c2505759d4fb0c64a00845ea17633d2f03","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","v9.0.0","backport:version","v8.17.0"],"number":200909,"url":"https://github.com/elastic/kibana/pull/200909","mergeCommit":{"message":"[chore] remove unused nyc configs and dependencies (#200909)\n\n## Summary\r\n\r\nnyc (istanbuljs) cleanup as we no longer collect code coverage for\r\nfunctional tests","sha":"88a280c2505759d4fb0c64a00845ea17633d2f03"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200909","number":200909,"mergeCommit":{"message":"[chore] remove unused nyc configs and dependencies (#200909)\n\n## Summary\r\n\r\nnyc (istanbuljs) cleanup as we no longer collect code coverage for\r\nfunctional tests","sha":"88a280c2505759d4fb0c64a00845ea17633d2f03"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
This commit is contained in:
parent
c1cdcd5291
commit
825cb5b68b
4 changed files with 0 additions and 84 deletions
|
@ -43,8 +43,6 @@
|
|||
"build": "node scripts/build --all-platforms",
|
||||
"build:apidocs": "node scripts/build_api_docs",
|
||||
"checkLicenses": "node scripts/check_licenses --dev",
|
||||
"cover:functional:merge": "nyc report --temp-dir target/kibana-coverage/functional --report-dir target/coverage/report/functional --reporter=json-summary",
|
||||
"cover:report": "nyc report --temp-dir target/kibana-coverage/functional --report-dir target/coverage/report --reporter=lcov && open ./target/coverage/report/lcov-report/index.html",
|
||||
"debug": "node --nolazy --inspect scripts/kibana --dev",
|
||||
"debug-break": "node --nolazy --inspect-brk scripts/kibana --dev",
|
||||
"dev-docs": "scripts/dev_docs.sh",
|
||||
|
@ -1344,8 +1342,6 @@
|
|||
"@emotion/babel-preset-css-prop": "^11.11.0",
|
||||
"@emotion/jest": "^11.11.0",
|
||||
"@frsource/cypress-plugin-visual-regression-diff": "^3.3.10",
|
||||
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
||||
"@istanbuljs/schema": "^0.1.2",
|
||||
"@jest/console": "^29.7.0",
|
||||
"@jest/reporters": "^29.7.0",
|
||||
"@jest/transform": "^29.6.1",
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/*
|
||||
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
|
||||
* License v3.0 only", or the "Server Side Public License, v 1".
|
||||
*/
|
||||
|
||||
const defaultExclude = require('@istanbuljs/schema/default-exclude');
|
||||
const extraExclude = [
|
||||
'data/optimize/**',
|
||||
'**/{__jest__,__test__,__examples__,__fixtures__,__snapshots__,__stories__,*mock*,*storybook,target,types}/**/*',
|
||||
'**/{integration_tests,test,tests,test_helpers,test_data,test_samples,test_utils,test_utilities,*scripts}/**/*',
|
||||
'**/{*e2e*,fixtures,manual_tests,stub*}/**',
|
||||
'**/*mock*.{ts,tsx}',
|
||||
'**/*.test.{ts,tsx}',
|
||||
'**/*.spec.{ts,tsx}',
|
||||
'**/types.ts',
|
||||
'**/*.d.ts',
|
||||
'**/index.{js,ts,tsx}',
|
||||
];
|
||||
// const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
// 'temp-dir': process.env.COVERAGE_TEMP_DIR
|
||||
// ? path.resolve(process.env.COVERAGE_TEMP_DIR, 'functional')
|
||||
// : 'target/kibana-coverage/functional',
|
||||
'temp-dir': process.env.COVERAGE_TEMP_DIR
|
||||
? process.env.COVERAGE_TEMP_DIR
|
||||
: 'target/kibana-coverage/functional',
|
||||
'report-dir': 'target/kibana-coverage/functional-combined',
|
||||
reporter: ['html', 'json-summary'],
|
||||
include: [
|
||||
'src/{core,plugins}/**/*.{js,mjs,jsx,ts,tsx}',
|
||||
'x-pack/plugins/**/*.{js,mjs,jsx,ts,tsx}',
|
||||
],
|
||||
exclude: extraExclude.concat(defaultExclude),
|
||||
};
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
|
||||
* License v3.0 only", or the "Server Side Public License, v 1".
|
||||
*/
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
extends: '@istanbuljs/nyc-config-typescript',
|
||||
'report-dir': process.env.KIBANA_DIR
|
||||
? path.resolve(process.env.KIBANA_DIR, 'target/kibana-coverage/functional')
|
||||
: 'target/kibana-coverage/functional',
|
||||
reporter: ['json'],
|
||||
all: true,
|
||||
include: [
|
||||
'src/{core,plugins}/**/*.{js,mjs,jsx,ts,tsx}',
|
||||
'x-pack/plugins/**/*.{js,mjs,jsx,ts,tsx}',
|
||||
],
|
||||
exclude: [
|
||||
'**/{__jest__,__test__,__examples__,__fixtures__,__snapshots__,__stories__,*mock*,*storybook,target,types}/**/*',
|
||||
'**/{integration_tests,test,tests,test_helpers,test_data,test_samples,test_utils,test_utilities,*scripts}/**/*',
|
||||
'**/{*e2e*,fixtures,manual_tests,stub*}/**',
|
||||
'**/*mock*.{ts,tsx}',
|
||||
'**/*.test.{ts,tsx}',
|
||||
'**/*.spec.{ts,tsx}',
|
||||
'**/types.ts',
|
||||
'**/*.d.ts',
|
||||
'**/index.{js,ts,tsx}',
|
||||
],
|
||||
};
|
|
@ -3482,13 +3482,6 @@
|
|||
js-yaml "^3.13.1"
|
||||
resolve-from "^5.0.0"
|
||||
|
||||
"@istanbuljs/nyc-config-typescript@^1.0.2":
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/@istanbuljs/nyc-config-typescript/-/nyc-config-typescript-1.0.2.tgz#1f5235b28540a07219ae0dd42014912a0b19cf89"
|
||||
integrity sha512-iKGIyMoyJuFnJRSVTZ78POIRvNnwZaWIf8vG4ZS3rQq58MMDrqEX2nnzx0R28V2X8JvmKYiqY9FP2hlJsm8A0w==
|
||||
dependencies:
|
||||
"@istanbuljs/schema" "^0.1.2"
|
||||
|
||||
"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3":
|
||||
version "0.1.3"
|
||||
resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue