Skip to content

Commit

Permalink
chore: only install vitest at root, prevent tests from being run in s…
Browse files Browse the repository at this point in the history
…ubpackages
  • Loading branch information
kanadgupta committed Oct 17, 2024
1 parent 991b659 commit fe27619
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 36 deletions.
27 changes: 7 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions packages/oas-normalize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}
6 changes: 2 additions & 4 deletions packages/oas-to-har/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
6 changes: 2 additions & 4 deletions packages/oas-to-snippet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
6 changes: 2 additions & 4 deletions packages/oas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}

0 comments on commit fe27619

Please sign in to comment.