test(jsclient): add comprehensive frontend test suite (126 tests) #3

Merged
fcxs merged 7 commits from 2602/front-testing into master 2026-03-09 17:19:02 +00:00
Owner

Add 194 tests covering Redux slices, React components, and custom
hooks. Introduce shared test utilities (createMockStore,
renderWithProviders, mock factories) and configure jest with 50%
coverage thresholds.

  • Add @testing-library/{react,jest-dom,dom,user-event} as dev deps
  • Add CI job "Frontend tests" in node:21.5.0 container
  • Rename CI jobs: "Backend tests & lint", "Frontend tests",
    "Build & push images"
  • Push job now requires both test jobs to pass
  • Add make test-front and yarn test:ci shortcuts
  • Add SECURITY.md with auth docs and hardening checklist
  • Split yarn install/build in frontend Dockerfile for layer caching
Add 194 tests covering Redux slices, React components, and custom hooks. Introduce shared test utilities (createMockStore, renderWithProviders, mock factories) and configure jest with 50% coverage thresholds. - Add @testing-library/{react,jest-dom,dom,user-event} as dev deps - Add CI job "Frontend tests" in node:21.5.0 container - Rename CI jobs: "Backend tests & lint", "Frontend tests", "Build & push images" - Push job now requires both test jobs to pass - Add `make test-front` and `yarn test:ci` shortcuts - Add SECURITY.md with auth docs and hardening checklist - Split yarn install/build in frontend Dockerfile for layer caching
test(jsclient): add comprehensive frontend test suite (126 tests)
All checks were successful
JARR CI / backend-build (pull_request) Successful in 8s
JARR CI / front-build (pull_request) Successful in 2m1s
JARR CI / backend-test (pull_request) Successful in 4m22s
JARR CI / push-images (pull_request) Has been skipped
5608ef4ebd
Add 14 test suites covering Redux slices, hooks, and component
integration for the jsclient. Includes shared test utilities,
setupTests fixes, CI script, and Docker build test step.
ci: add dedicated front-test job to CI pipeline
All checks were successful
JARR CI / backend-build (pull_request) Successful in 7s
JARR CI / front-build (pull_request) Successful in 33s
JARR CI / front-test (pull_request) Successful in 44s
JARR CI / backend-test (pull_request) Successful in 4m19s
JARR CI / push-images (pull_request) Has been skipped
a34a7b4418
Split frontend tests into their own CI job instead of embedding them
in the Docker build. This gives clear test visibility and reporting
in the pipeline. Tests must pass before images can be pushed.
test(jsclient): add coverage threshold and expand test suite to 194 tests
All checks were successful
JARR CI / backend-build (pull_request) Successful in 8s
JARR CI / front-test (pull_request) Successful in 1m7s
JARR CI / front-build (pull_request) Successful in 2m42s
JARR CI / backend-test (pull_request) Successful in 5m37s
JARR CI / push-images (pull_request) Has been skipped
961a12a4de
Add 50% global coverage threshold for statements, branches, functions,
and lines. Expand test suite with tests for hooks, noauth slice/components,
edit panel sub-components, SelectedObjCard, and themeSlice to meet the
threshold (62% statements, 55% branches, 53% functions, 62% lines).
Merge branch 'master' into 2602/front-testing
All checks were successful
JARR CI / backend-build (pull_request) Successful in 7s
JARR CI / front-test (pull_request) Successful in 50s
JARR CI / front-build (pull_request) Successful in 33s
JARR CI / backend-test (pull_request) Successful in 4m28s
JARR CI / push-images (pull_request) Has been skipped
3c5c64ad1f
Merge remote-tracking branch 'origin/master' into 2602/front-testing
All checks were successful
JARR CI / front-test (pull_request) Successful in 38s
JARR CI / test (pull_request) Successful in 5m10s
JARR CI / push (pull_request) Has been skipped
cdd2265814
# Conflicts:
#	.forgejo/workflows/ci.yml
#	README.md
#	SECURITY.md
wip
All checks were successful
JARR CI / Frontend tests (pull_request) Successful in 39s
JARR CI / Backend tests & lint (pull_request) Successful in 3m51s
JARR CI / Build & push images (pull_request) Has been skipped
3c967ed9b6
fcxs merged commit 4a6eaca814 into master 2026-03-09 17:19:02 +00:00
fcxs deleted branch 2602/front-testing 2026-03-09 17:19:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fcxs/JARR!3
No description provided.