Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

added storage interface to scope data by tab #343

added storage interface to scope data by tab

added storage interface to scope data by tab #343

Triggered via pull request August 15, 2024 21:45
Status Failure
Total duration 55s
Artifacts

vitest.yml

on: pull_request
vitest_run
47s
vitest_run
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
tests/utils.test.ts: apps/mocksi-lite/content/utils/Storage.tsx#L28
ReferenceError: chrome is not defined ❯ new Storage content/utils/Storage.tsx:28:29 ❯ content/utils/Storage.tsx:161:24 ❯ content/AppStateContext.tsx:5:31
content/utils/Storage.test.ts: apps/mocksi-lite/content/utils/Storage.test.ts#L20
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 ❯ content/utils/Storage.test.ts:20:25 Caused by: Caused by: ReferenceError: chrome is not defined ❯ new Storage content/utils/Storage.tsx:28:29 ❯ content/utils/Storage.tsx:161:24 ❯ content/AppStateContext.tsx:5:31
vitest_run
Process completed with exit code 1.
vitest_run
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/