Skip to content
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 test tooling #27

Open
JBurkinshaw opened this issue Aug 20, 2024 · 0 comments
Open

Add test tooling #27

JBurkinshaw opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JBurkinshaw
Copy link
Collaborator

Determine a path forward for testing component in the library.
Decisions to make include:

  • Selecting a testing framework (i.e. test runner, assetions, mocking etc). Recommended solutions include jest and vitest. Sounds like vitest works well with vite and configuration is relatively simple compared to jest.
  • Unit testing library. A good option here could be testing React Testing Library.

Next, start adding tests to existing components.

@JBurkinshaw JBurkinshaw added the enhancement New feature or request label Aug 20, 2024
@JBurkinshaw JBurkinshaw self-assigned this Aug 20, 2024
JBurkinshaw added a commit that referenced this issue Oct 25, 2024
Add vitest, testing-library and jsdom packages.
Update configuration files.
Add setupTests.ts.
Add example test for Swatch component.
Add error handling to lint-staged config.
Worked out some outstanding TS issues.

Ref: #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant