Remove code coverage and it's dependencies

We weren't really using any of it.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-09-30 10:59:44 +02:00
parent 46ae7982a6
commit 89ffddf854
6 changed files with 186 additions and 5559 deletions
-4
View File
@@ -2,10 +2,6 @@ build/
node_modules/
NOTES
# Coverage
.nyc_output
coverage
# Integration Tests
cypress/screenshots
-5
View File
@@ -1,5 +0,0 @@
{
"all": true,
"extension": [".svelte", ".ts"],
"include": ["src/**/*"]
}
+2 -3
View File
@@ -1,9 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import "@cypress/code-coverage/support";
declare global {
interface Window {
ethereum: any;
localStorage: Storage;
}
}
export {};
+184 -5531
View File
File diff suppressed because it is too large Load Diff
-3
View File
@@ -6,7 +6,6 @@
"build": "scripts/build",
"check": "scripts/check",
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html)' --ignore-path .gitignore --write",
"coverage": "npx nyc report",
"test:unit": "TZ='UTC' vitest run",
"test:components": "cypress run --component",
"test:e2e": "cypress run",
@@ -17,7 +16,6 @@
"node": ">=14"
},
"devDependencies": {
"@cypress/code-coverage": "^3.10.0",
"@rsksmart/mock-web3-provider": "^1.0.1",
"@sveltejs/vite-plugin-svelte": "^1.0.8",
"@tsconfig/svelte": "^3.0.0",
@@ -37,7 +35,6 @@
"svelte-check": "^2.9.1",
"typescript": "^4.8.4",
"vite": "^3.0.3",
"vite-plugin-istanbul": "^3.0.1",
"vitest": "^0.23.4"
},
"dependencies": {
-13
View File
@@ -3,7 +3,6 @@ import path from "path";
import type { UserConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import type { ViteDevServer } from "vite";
import IstanbulPlugin from "vite-plugin-istanbul";
import history from "connect-history-api-fallback";
import type { Request, Response } from "express-serve-static-core";
@@ -22,12 +21,6 @@ const config: UserConfig = {
environment: "happy-dom",
include: ["**/*.test.ts"],
reporters: "verbose",
coverage: {
reporter: ["html"],
all: true,
excludeNodeModules: true,
extension: [".svelte", ".ts", ".js"],
},
},
plugins: [
svelte({
@@ -37,12 +30,6 @@ const config: UserConfig = {
},
}),
rewriteAll(),
IstanbulPlugin({
include: "src/**/*",
exclude: ["node_modules"],
extension: [".ts", ".svelte"],
cypress: true,
}),
],
server: {
port: 3000,