From 6b0b88d29aae8bf8fac074822765fc63dd81a024 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
Date: Sat, 13 Jul 2024 20:59:51 +0200
Subject: [PATCH] Update c8 configuration (#10361)

* Update c8 configuration

* Update .gitignore
---
 .nycrc.json => .c8rc.json | 7 ++++---
 .gitignore                | 3 ---
 package.json              | 2 +-
 3 files changed, 5 insertions(+), 7 deletions(-)
 rename .nycrc.json => .c8rc.json (88%)

diff --git a/.nycrc.json b/.c8rc.json
similarity index 88%
rename from .nycrc.json
rename to .c8rc.json
index 5e00c6d174..b4a8e71def 100644
--- a/.nycrc.json
+++ b/.c8rc.json
@@ -9,10 +9,8 @@
     "**/test-helpers.js",
     "**/*-test-helpers.js",
     "**/*-fixtures.js",
-    "**/mocha-*.js",
     "**/*.test-d.ts",
     "dangerfile.js",
-    "gatsby-*.js",
     "core/service-test-runner",
     "core/got-test-client.js",
     "services/**/*.tester.js",
@@ -23,6 +21,9 @@
     "coverage",
     "build",
     ".github",
-    "**/public/"
+    "**/public/",
+    "cypress",
+    "frontend",
+    "migrations"
   ]
 }
diff --git a/.gitignore b/.gitignore
index 0d7154143a..842820aeb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,9 +50,6 @@ lib-cov
 # Coverage directory used by tools like istanbul
 coverage
 
-# nyc test coverage
-.nyc_output
-
 # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
 .grunt
 
diff --git a/package.json b/package.json
index 05f149a60a..aae9fb6a45 100644
--- a/package.json
+++ b/package.json
@@ -75,7 +75,7 @@
     "coverage:test:entrypoint": "c8 npm run test:entrypoint",
     "coverage:test:integration": "c8 npm run test:integration",
     "coverage:test:services": "c8 npm run test:services",
-    "coverage:clean": "rimraf .nyc_output coverage",
+    "coverage:clean": "rimraf coverage",
     "precoverage:test": "cross-env BASE_URL=http://localhost:8080 run-s --silent coverage:clean defs",
     "coverage:test": "run-s --silent --continue-on-error coverage:test:core coverage:test:package coverage:test:entrypoint coverage:test:integration",
     "coverage:report:generate": "c8 report",
-- 
GitLab