Skip to content

Commit

Permalink
feat: add tests using vitest
Browse files Browse the repository at this point in the history
This commit adds basic tests for the conversion of package.json to
jsr.json. It includes test cases for basic package.json and
package.json without files. The tests check if the generated jsr.json
matches the expected output. The commit also includes necessary
test files and updates to the tsconfig.json and vite.config.ts files.
  • Loading branch information
ryoppippi committed Aug 10, 2024
1 parent 4efd69b commit fc6431a
Show file tree
Hide file tree
Showing 10 changed files with 892 additions and 19 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ryoppippi } from '@ryoppippi/eslint-config';

export default ryoppippi({
svelte: false,
ignores: ['tsdown.config.ts'],
ignores: ['tsdown.config.ts', 'vitest.config.ts'],
typescript: {
tsconfigPath: './tsconfig.json',
overrides: {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"release": "nr typecheck && nr test run && nr build && nlx bumpp && npm publish",
"lint": "eslint --cache .",
"format": "nr lint --fix",
"test": "bun test",
"test": "vitest",
"prepare": "ts-patch install && typia patch && bun run ./scripts/gen_types.ts"
},
"dependencies": {
Expand All @@ -46,7 +46,8 @@
"ts-patch": "^3.2.1",
"tsdown": "^0.2.4",
"typescript": "^5.5.4",
"typia": "^6.7.2"
"typia": "^6.7.2",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
}
Loading

0 comments on commit fc6431a

Please sign in to comment.