Skip to content

Commit

Permalink
chore: Add snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
7nohe committed Apr 20, 2024
1 parent 7f98d56 commit 300ff6c
Show file tree
Hide file tree
Showing 7 changed files with 3,117 additions and 2,032 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:

- name: Run tsc
run: pnpm --filter @7nohe/react-app test:generated

- name: Run test
run: pnpm test
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "rimraf dist && tsc -p tsconfig.json",
"preview": "npm run build && npm -C examples/react-app run generate:api",
"prepublishOnly": "npm run build",
"release": "npx git-ensure -a && npx bumpp --commit --tag --push"
"release": "npx git-ensure -a && npx bumpp --commit --tag --push",
"test": "vitest"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,7 +44,8 @@
"glob": "^10.3.10",
"rimraf": "^5.0.5",
"ts-morph": "^22.0.0",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"vitest": "^1.5.0"
},
"peerDependencies": {
"@hey-api/openapi-ts": "0.36.0",
Expand Down
Loading

0 comments on commit 300ff6c

Please sign in to comment.