From fe27619d1bf68646081fed3f2d445b322502f1ef Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Thu, 17 Oct 2024 11:45:58 -0500 Subject: [PATCH] chore: only install vitest at root, prevent tests from being run in subpackages --- package-lock.json | 27 +++++++-------------------- packages/oas-normalize/package.json | 6 ++---- packages/oas-to-har/package.json | 6 ++---- packages/oas-to-snippet/package.json | 6 ++---- packages/oas/package.json | 6 ++---- 5 files changed, 15 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1cf28d3b..0fe22444 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3394,7 +3394,6 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -5896,7 +5895,6 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "dev": true, "optional": true, "dependencies": { "iconv-lite": "^0.6.2" @@ -5906,7 +5904,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -7540,8 +7537,7 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -10228,8 +10224,7 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -16333,7 +16328,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "devOptional": true }, "node_modules/semver": { "version": "7.6.0", @@ -20127,10 +20122,8 @@ "@types/json-schema-merge-allof": "^0.6.5", "@types/memoizee": "^0.4.11", "@types/node": "^20.12.13", - "@vitest/coverage-v8": "^1.4.0", "tsup": "^8.0.2", - "typescript": "^5.4.4", - "vitest": "^1.4.0" + "typescript": "^5.4.4" }, "engines": { "node": ">=18" @@ -20150,12 +20143,10 @@ "@readme/oas-examples": "^5.12.0", "@types/js-yaml": "^4.0.9", "@types/swagger2openapi": "^7.0.4", - "@vitest/coverage-v8": "^1.4.0", "eslint": "^8.57.0", "nock": "^14.0.0-beta.12", "tsup": "^8.0.2", - "typescript": "^5.1.6", - "vitest": "^1.4.0" + "typescript": "^5.1.6" }, "engines": { "node": ">=18" @@ -20175,13 +20166,11 @@ "@readme/oas-examples": "^5.12.0", "@types/har-format": "^1.2.15", "@types/qs": "^6.9.14", - "@vitest/coverage-v8": "^1.4.0", "eslint": "^8.57.0", "jest-expect-har": "^7.1.0", "tsup": "^8.0.2", "type-fest": "^4.18.3", - "typescript": "^5.2.2", - "vitest": "^1.4.0" + "typescript": "^5.2.2" }, "engines": { "node": ">=18" @@ -20211,14 +20200,12 @@ "@readme/oas-examples": "^5.12.0", "@types/har-format": "^1.2.14", "@types/node": "^20.8.7", - "@vitest/coverage-v8": "^1.4.0", "har-examples": "^3.1.1", "httpsnippet-client-api": "^7.0.0-beta.4", "oas": "file:../oas", "tsup": "^8.0.2", "type-fest": "^4.18.3", - "typescript": "^5.2.2", - "vitest": "^1.4.0" + "typescript": "^5.2.2" }, "engines": { "node": ">=18" diff --git a/packages/oas-normalize/package.json b/packages/oas-normalize/package.json index 381b8fd5..ef41073f 100644 --- a/packages/oas-normalize/package.json +++ b/packages/oas-normalize/package.json @@ -59,7 +59,7 @@ "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", - "test": "vitest run --coverage" + "test": "echo 'Please run tests from the root!' && exit 1" }, "license": "MIT", "dependencies": { @@ -73,12 +73,10 @@ "@readme/oas-examples": "^5.12.0", "@types/js-yaml": "^4.0.9", "@types/swagger2openapi": "^7.0.4", - "@vitest/coverage-v8": "^1.4.0", "eslint": "^8.57.0", "nock": "^14.0.0-beta.12", "tsup": "^8.0.2", - "typescript": "^5.1.6", - "vitest": "^1.4.0" + "typescript": "^5.1.6" }, "prettier": "@readme/eslint-config/prettier" } diff --git a/packages/oas-to-har/package.json b/packages/oas-to-har/package.json index a5339e09..c6a74715 100644 --- a/packages/oas-to-har/package.json +++ b/packages/oas-to-har/package.json @@ -46,7 +46,7 @@ "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", - "test": "vitest run --coverage" + "test": "echo 'Please run tests from the root!' && exit 1" }, "dependencies": { "@readme/data-urls": "^3.0.0", @@ -58,13 +58,11 @@ "@readme/oas-examples": "^5.12.0", "@types/har-format": "^1.2.15", "@types/qs": "^6.9.14", - "@vitest/coverage-v8": "^1.4.0", "eslint": "^8.57.0", "jest-expect-har": "^7.1.0", "tsup": "^8.0.2", "type-fest": "^4.18.3", - "typescript": "^5.2.2", - "vitest": "^1.4.0" + "typescript": "^5.2.2" }, "prettier": "@readme/eslint-config/prettier" } diff --git a/packages/oas-to-snippet/package.json b/packages/oas-to-snippet/package.json index 43a44905..91926051 100644 --- a/packages/oas-to-snippet/package.json +++ b/packages/oas-to-snippet/package.json @@ -47,7 +47,7 @@ "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", - "test": "vitest run --coverage" + "test": "echo 'Please run tests from the root!' && exit 1" }, "dependencies": { "@readme/httpsnippet": "^10.1.0", @@ -57,14 +57,12 @@ "@readme/oas-examples": "^5.12.0", "@types/har-format": "^1.2.14", "@types/node": "^20.8.7", - "@vitest/coverage-v8": "^1.4.0", "har-examples": "^3.1.1", "httpsnippet-client-api": "^7.0.0-beta.4", "oas": "file:../oas", "tsup": "^8.0.2", "type-fest": "^4.18.3", - "typescript": "^5.2.2", - "vitest": "^1.4.0" + "typescript": "^5.2.2" }, "prettier": "@readme/eslint-config/prettier" } diff --git a/packages/oas/package.json b/packages/oas/package.json index 0256d8bc..627de658 100644 --- a/packages/oas/package.json +++ b/packages/oas/package.json @@ -84,7 +84,7 @@ "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", - "test": "vitest run --coverage", + "test": "echo 'Please run tests from the root!' && exit 1", "watch": "tsc --watch" }, "dependencies": { @@ -105,10 +105,8 @@ "@types/json-schema-merge-allof": "^0.6.5", "@types/memoizee": "^0.4.11", "@types/node": "^20.12.13", - "@vitest/coverage-v8": "^1.4.0", "tsup": "^8.0.2", - "typescript": "^5.4.4", - "vitest": "^1.4.0" + "typescript": "^5.4.4" }, "prettier": "@readme/eslint-config/prettier" }