Skip to content

Balance visibility update #260

Balance visibility update

Balance visibility update #260

Triggered via pull request November 15, 2024 22:18
Status Failure
Total duration 58s
Artifacts

2_unit.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
tests/unit/functions.test.ts > getLocalStorageData > should load transactionSettings from localStorage and set the store: src/utils/functions/getLocalStorageData.ts#L47
Error: [vitest] No "visible" export is defined on the "@store" 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("@store", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.getLocalStorageData src/utils/functions/getLocalStorageData.ts:47:3 ❯ tests/unit/functions.test.ts:711:5
tests/unit/functions.test.ts > getLocalStorageData > should set aprFilter to 'weekly' if localStorage value is 'week': src/utils/functions/getLocalStorageData.ts#L47
Error: [vitest] No "visible" export is defined on the "@store" 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("@store", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.getLocalStorageData src/utils/functions/getLocalStorageData.ts:47:3 ❯ tests/unit/functions.test.ts:719:5
tests/unit/functions.test.ts > getLocalStorageData > should set aprFilter to 'daily' if localStorage value is '24h': src/utils/functions/getLocalStorageData.ts#L47
Error: [vitest] No "visible" export is defined on the "@store" 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("@store", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.getLocalStorageData src/utils/functions/getLocalStorageData.ts:47:3 ❯ tests/unit/functions.test.ts:727:5
tests/unit/functions.test.ts > getLocalStorageData > should set aprFilter to default value 'weekly' if nothing is in localStorage: src/utils/functions/getLocalStorageData.ts#L47
Error: [vitest] No "visible" export is defined on the "@store" 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("@store", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.getLocalStorageData src/utils/functions/getLocalStorageData.ts:47:3 ❯ tests/unit/functions.test.ts:733:5
tests/unit/functions.test.ts > getLocalStorageData > should not set transactionSettings if there is no data in localStorage: src/utils/functions/getLocalStorageData.ts#L47
Error: [vitest] No "visible" export is defined on the "@store" 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("@store", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.getLocalStorageData src/utils/functions/getLocalStorageData.ts:47:3 ❯ tests/unit/functions.test.ts:739:5
test
Process completed with exit code 1.