SSWConsulting / SSWConsulting/SSW.Website

🧪 Testing - Add Unit Testing

Open
#1,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
14
Forks
10
Avg merge
13h 51m
Merged PRs (30d)
38

Description

Note: Only action once all pages have been migrated

As per my conversation with @wicksipedia, it would be good to add a testing framework (i.e. Jest) to the SSW Website.
Storybook should also be considered alongside Jest to also allow visual testing and a visual database of the components in the project.

### Tasks
- [ ] Investigate whether to add Jest and/or Playwright and/or other testing framework to the project
- [ ] Add the chosen framework 
- [ ] Add a way to measure code coverage using these unit testing frameworks

Links:
https://nextjs.org/docs/pages/building-your-application/optimizing/testing#jest-and-react-testing-library
https://storybook.js.org/docs/writing-tests/test-runner

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Wait until all pages have been migrated, then review the linked Next.js and Storybook testing guidance and compare Jest, Playwright, and other candidate frameworks. Decide which framework or combination fits the project, add it, and provide a code-coverage measurement method; completion should satisfy all three listed tasks.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs
Domain
frontend, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.