front: cookie to createCookie #12
Annotations
5 errors and 1 warning
test/routes/auth.login.test.tsx > Login page > should login successfully:
frontend/app/routes/auth.login.tsx#L55
Error: [vitest] No "useFetcher" export is defined on the "@remix-run/react" 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(import("@remix-run/react"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ LoginPage app/routes/auth.login.tsx:55:18
❯ Object.react-stack-bottom-frame node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:22360:20
❯ renderWithHooks node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:5746:22
❯ updateFunctionComponent node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:7991:19
❯ beginWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:9656:18
❯ runWithFiberInDEV node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:539:16
❯ performUnitOfWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:15010:22
❯ workLoopSync node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:14832:41
|
test/routes/auth.login.test.tsx > Login page > should fail to pass when email is invalid:
frontend/app/routes/auth.login.tsx#L55
Error: [vitest] No "useFetcher" export is defined on the "@remix-run/react" 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(import("@remix-run/react"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ LoginPage app/routes/auth.login.tsx:55:18
❯ Object.react-stack-bottom-frame node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:22360:20
❯ renderWithHooks node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:5746:22
❯ updateFunctionComponent node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:7991:19
❯ beginWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:9656:18
❯ runWithFiberInDEV node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:539:16
❯ performUnitOfWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:15010:22
❯ workLoopSync node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:14832:41
|
test/routes/auth.login.test.tsx > Login page > should fail to pass when password length is less than 8:
frontend/app/routes/auth.login.tsx#L55
Error: [vitest] No "useFetcher" export is defined on the "@remix-run/react" 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(import("@remix-run/react"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ LoginPage app/routes/auth.login.tsx:55:18
❯ Object.react-stack-bottom-frame node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:22360:20
❯ renderWithHooks node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:5746:22
❯ updateFunctionComponent node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:7991:19
❯ beginWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:9656:18
❯ runWithFiberInDEV node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:539:16
❯ performUnitOfWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:15010:22
❯ workLoopSync node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:14832:41
|
test/routes/auth.login.test.tsx > Login page > should fail to pass when password is not alphanumeric:
frontend/app/routes/auth.login.tsx#L55
Error: [vitest] No "useFetcher" export is defined on the "@remix-run/react" 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(import("@remix-run/react"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ LoginPage app/routes/auth.login.tsx:55:18
❯ Object.react-stack-bottom-frame node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:22360:20
❯ renderWithHooks node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:5746:22
❯ updateFunctionComponent node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:7991:19
❯ beginWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:9656:18
❯ runWithFiberInDEV node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:539:16
❯ performUnitOfWork node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:15010:22
❯ workLoopSync node_modules/.pnpm/react-dom@19.0.0-rc-09111202-20241011_react@19.0.0-rc-09111202-20241011/node_modules/react-dom/cjs/react-dom-client.development.js:14832:41
|
vitest
Process completed with exit code 1.
|
vitest
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|