-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the first test script #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does vitest depend on vite?
When I looked vitest looked like a nice front-end package, but it seems you can run vitest without it I think.
examples/tests/package.json
Outdated
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why we need vite here?
examples/tests/package.json
Outdated
"devDependencies": { | ||
"mupdf": "^0.2.1", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why we need vite here?
The vitest example I was referring to was creating an environment from vite, so the code was still there. I deleted it. |
Added tests directory in examples, added simple tests for metadata. Vitest is used for testing framework.
You can run it with
npm run test
.