feat: add test for invalid JSON #7962
Annotations
13 errors
deploy
Cannot find module './submissionService' or its corresponding type declarations.
|
deploy
Cannot find module '@/api/submissionService' or its corresponding type declarations.
|
deploy
Process completed with exit code 1.
|
lambda/sinkMainProcessors.test.ts > processIndex > handles valid kafka records successfully:
lib/lambda/sinkMainProcessors.test.ts#L42
AssertionError: expected "bulkUpdateDataWrapper" to be called with arguments: [ [ { …(19) } ], 'main' ]
Received:
1st bulkUpdateDataWrapper call:
Array [
Array [
Object {
"additionalInformation": undefined,
"authority": "Medicaid SPA",
"changedDate": "2024-11-26T18:17:21.526Z",
"cmsStatus": "Pending",
"description": null,
"id": "MD-24-2300",
"initialIntakeNeeded": true,
"makoChangedDate": "2024-11-26T18:17:21.526Z",
"origin": "OneMAC",
"proposedDate": 1732597200000,
"raiWithdrawEnabled": false,
"seatoolStatus": "Pending",
"state": "MD",
"stateStatus": "Under Review",
- "statusDate": "2024-11-26T13:17:21.526Z",
+ "statusDate": "2024-11-26T18:17:21.526Z",
"subject": null,
"submissionDate": "2024-11-26T00:00:00.000Z",
"submitterEmail": "[email protected]",
"submitterName": "George Harrison",
},
],
"main",
]
Number of calls: 1
❯ lambda/sinkMainProcessors.test.ts:42:24
|
src/features/profile/profile.test.tsx:
react-app/src/features/profile/index.tsx#L2
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/features/profile/index.tsx:2:31
Caused by: Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/components/RHF/tests/FieldArray.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/components/RHF/tests/NameGen.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/components/RHF/tests/Section.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/components/RHF/tests/Slot.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/components/RHF/tests/SlotField.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/features/package/package-activity/hook.test.tsx:
react-app/src/features/package/package-activity/hook.ts#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/features/package/package-activity/hook.ts:1:1
Caused by: Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/features/package/package-activity/index.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|
src/features/forms/post-submission/amend/index.test.tsx:
react-app/src/hooks/useReadOnlyUser.tsx#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/hooks/useReadOnlyUser.tsx:1:1
Caused by: Error: Failed to resolve import "./submissionService" from "react-app/src/api/index.ts". Does the file exist?
❯ TransformPluginContext._formatError ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49193:41
❯ TransformPluginContext.error ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49188:16
❯ normalizeUrl ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:63984:23
❯ ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64116:39
❯ TransformPluginContext.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:64043:7
❯ PluginContainer.transform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:49034:18
❯ loadAndTransform ../node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51867:27
|