test
Some checks failed
test / Run tests (push) Failing after 6s
build / Build (push) Failing after 9s

This commit is contained in:
2025-03-19 18:05:54 +08:00
parent c2219db73e
commit fd2aba4286
31 changed files with 584 additions and 199 deletions

View File

@ -0,0 +1,26 @@
import Cookies from "./cookies";
import Downloads from "./downloads";
import Notifications from "./notifications";
import Runtime from "./runtime";
import MockTab from "./tab";
import WebRequest from "./web_reqeuest";
import Storage from "./storage";
import I18n from "./i18n";
import DeclarativeNetRequest from "./declarativ_net_request";
const chromeMock = {
tabs: new MockTab(),
runtime: new Runtime(),
webRequest: new WebRequest(),
notifications: new Notifications(),
downloads: new Downloads(),
cookies: new Cookies(),
storage: new Storage(),
i18n: new I18n(),
declarativeNetRequest: new DeclarativeNetRequest(),
init() {},
};
// @ts-ignore
global.chrome = chromeMock;
export default chromeMock;