feat: onboarding flow for the frontend #377
main.yml
on: pull_request
build-nextjs
/
nextjs-build
43s
unit-test-frontend
/
nextjs-unit-tests
27s
build-gocert
/
go-build
go-lint
/
lint
go-vet
/
go-vet
unit-test-gocert
/
go-unit-tests
Annotations
3 errors
src/app/nav.test.tsx > Navigation > should open aside when clicking button:
ui/src/app/login.tsx#L7
Error: [vitest] No "useRouter" export is defined on the "next/navigation" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("next/navigation", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ AccountTab src/app/login.tsx:7:20
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
|
unit-test-frontend / nextjs-unit-tests
Process completed with exit code 1.
|
build-nextjs / nextjs-build
Process completed with exit code 1.
|