feat: users table #373
main.yml
on: pull_request
build-nextjs
/
nextjs-build
41s
unit-test-frontend
/
nextjs-unit-tests
16s
unit-test-gocert
/
go-unit-tests
17s
go-vet
/
go-vet
14s
go-lint
/
lint
13s
build-gocert
/
go-build
18s
Annotations
2 errors and 1 warning
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.
|
rock-build / build-rock
Rockcraft revision not provided. Installing from edge
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
frontend-static-files
Expired
|
388 KB |
|
rock
Expired
|
15.3 MB |
|