IIIF-Commons / thumbnail-panel

https://thumbnail-panel.netlify.app
MIT License
3 stars 1 forks source link

Unit test setup #18

Closed adamjarling closed 1 year ago

adamjarling commented 1 year ago

Playing around with vitest and did some initial wiring up w/ @testing-library and config to support testing TypeScript React components. Used <Thumbnail /> as an example for some initial patterns maybe we want to use w/ @testing-library and vitest.

Note: my IDE (VSCode) was cleaning up a lot of code per the .prettierrc file rules in the project. So probably looks like more code additions than there really are.

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

netlify[bot] commented 1 year ago

Deploy Preview for thumbnail-panel ready!

Name Link
Latest commit 2b078e8d5f28a02877c00f5b888a4862b8d0dd87
Latest deploy log https://app.netlify.com/sites/thumbnail-panel/deploys/642454f54ad23b0008031858
Deploy Preview https://deploy-preview-18--thumbnail-panel.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

adamjarling commented 1 year ago

Also if you have any other best practices in a Vite environment for unit testing, curious on any tips and tricks. 😁