Scheduling and management app for personal trainers made with Next.js 13 (App Router), RSC, Redux Toolkit, RTK Query, Prisma, PostgreSQL, NextAuth, Tailwind CSS, and shadcn/ui.
Tests pass but the process exits with this error, seemingly related to the mswjs or jsdom libraries:
npm run test:ci
shell: /usr/bin/bash -e {0}
>[email protected] test:ci
> jest
- warn You have enabled experimental feature (serverComponentsExternalPackages) in next.config.js.
- warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
PASS __tests__/components/WorkoutItem.test.tsx
PASS __tests__/components/Calendar.test.tsx
Test Suites: 2 passed, 2 total
Tests: 9 passed, 9 total
Snapshots: 0 total
Time: 2.13 s
Ran all test suites.
/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/jsdom/lib/jsdom/browser/Window.js:376
return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
^
TypeError: Cannot read properties of null (reading '_location')
at Window.get location [as location] (/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/jsdom/lib/jsdom/browser/Window.js:376:79)
at FetchInterceptor.<anonymous> (/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:52:9)
at step (/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.js:59:23)
at Object.next (/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.js:40:53)
at fulfilled (/home/runner/work/personal-trainer-planner/personal-trainer-planner/node_modules/@mswjs/interceptors/lib/interceptors/fetch/index.js:31:58)
Node.js v18.16.0
Error: Process completed with exit code 1.
Add tabs to the individual users/[id] route, so can switch between viewing different data tables for one user: workouts, appointments, bootcamps, invoices. Credits history.