Balance visibility update #260
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.
|