Skip to content

Commit

Permalink
[suppressions] Add code coverage (#29156)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored May 19, 2024
1 parent 51e9bdf commit cf4d783
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_eng-tools-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}

- run: npm test
- run: npm run test:ci
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ out/*
tmp/*
obj/

# Coverage directory used by "vitest"
coverage

# AutoRest Nightly #
AutoRest.*
Expand Down
12 changes: 7 additions & 5 deletions eng/tools/suppressions/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@azure-tools/suppressions",
"private": true,
"version": "0.0.1",
"type": "module",
"main": "dist/src/index.js",
"bin": {
Expand All @@ -10,18 +9,21 @@
"dependencies": {
"minimatch": "^9.0.4",
"yaml": "^2.4.2",
"zod": "^3.23.6",
"zod-validation-error": "^3.2.0"
"zod": "^3.23.8",
"zod-validation-error": "^3.3.0"
},
"devDependencies": {
"@types/node": "^18.19.31",
"@vitest/coverage-v8": "^1.6.0",
"typescript": "~5.4.5",
"vitest": "^1.5.3"
"vitest": "^1.6.0"
},
"scripts": {
"build": "tsc",
"coverage": "vitest run --coverage",
"postinstall": "npm run build",
"test": "vitest"
"test": "vitest",
"test:ci": "npm run coverage"
},
"engines": {
"node": ">= 18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions eng/tools/typespec-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@azure-tools/typespec-validation",
"private": true,
"version": "0.0.1",
"type": "module",
"main": "dist/src/index.js",
"bin": {
Expand All @@ -22,7 +21,8 @@
"scripts": {
"build": "tsc",
"postinstall": "cd ../suppressions && npm run build && cd ../typespec-validation && npm run build",
"test": "npm run build && mocha --recursive --exit"
"test": "npm run build && mocha --recursive --exit",
"test:ci": "npm run test"
},
"engines": {
"node": ">= 18.0.0"
Expand Down
Loading

0 comments on commit cf4d783

Please sign in to comment.