From 0989678f03643c167e0ecf7ded6fb107a83960b6 Mon Sep 17 00:00:00 2001 From: ryanml Date: Wed, 1 Feb 2023 17:05:52 -0700 Subject: [PATCH] Fixing yarn version command, adding yarn version plugin (#17325) * Removing invalid flags for yarn version command * Adding yarn version plugin * remove .yarn from coverage --------- Co-authored-by: Brad Decker --- coverage-targets.js | 8 ++++---- nyc.config.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 nyc.config.js diff --git a/coverage-targets.js b/coverage-targets.js index 5b464d2fc..4bccf1153 100644 --- a/coverage-targets.js +++ b/coverage-targets.js @@ -6,10 +6,10 @@ // subset of files to check against these targets. module.exports = { global: { - branches: 20, - functions: 30, - lines: 57, - statements: 40, + branches: 50, + functions: 55, + lines: 62.25, + statements: 61.5, }, transforms: { branches: 100, diff --git a/nyc.config.js b/nyc.config.js new file mode 100644 index 000000000..408ea27b4 --- /dev/null +++ b/nyc.config.js @@ -0,0 +1,17 @@ +// nyc is our coverage reporter for mocha, and currently is collecting +// coverage for .yarn folder. all of these are default excludes except the +// .yarn/** entry. This entire file should be removable once we complete the +// migration from mocha to jest in the app folder. +module.exports = { + exclude: [ + 'coverage/**', + 'packages/*/test/**', + 'test/**', + 'test{,-*}.js', + '**/*{.,-}test.js', + '**/__tests__/**', + '**/node_modules/**', + '**/babel.config.js', + '.yarn/**', + ], +};