feat(app): Add post submission support for Temporary Extension #584
pr-coverage-annotation.yml
on: pull_request
coverage-report
1m 52s
Annotations
2 errors and 1 warning
src/features/forms/waiver/temporary-extension/temporary-extension.test.tsx > Temporary Extension:
react-app/src/features/forms/waiver/temporary-extension/index.tsx#L629
Error: [vitest] No "useGetItem" export is defined on the "@/api" 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("@/api"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TemporaryExtensionForm src/features/forms/waiver/temporary-extension/index.tsx:629:54
❯ 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
|
coverage-report
Process completed with exit code 1.
|
coverage-report
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|