diff --git a/__tests__/assets/globals.d.ts b/__tests__/assets/globals.d.ts index 71cae14edbf892258515d5847c504ca82007ebc0..6a3a2c1547e6c30d35979e9e098f9932697bd739 100644 --- a/__tests__/assets/globals.d.ts +++ b/__tests__/assets/globals.d.ts @@ -1,5 +1,7 @@ // We only want to import types here! import type beekeeperFactoryType from "@hiveio/beekeeper/web"; +import type Wax from "@hiveio/wax"; + import type WorkerBee from "../../dist/bundle/index"; export type TEnvType = "web" | "node"; @@ -8,6 +10,7 @@ export type TEnvType = "web" | "node"; export interface IWorkerBeeGlobals { beekeeperFactory: typeof beekeeperFactoryType; WorkerBee: typeof WorkerBee; + wax: typeof Wax; } declare global { diff --git a/__tests__/assets/globals.js b/__tests__/assets/globals.js index c2248da70152ca9bc7d76f84acf5da60762af68f..0174ed06d986d6bd45dcc11ee4d5324b0d993ec8 100644 --- a/__tests__/assets/globals.js +++ b/__tests__/assets/globals.js @@ -2,15 +2,18 @@ globalThis.createTestFor = async function createTestFor(env) { const locWorkerBee = env === "web" ? "../../dist/bundle/index.js" : "../../dist/bundle/index.js"; const locBeekeeper = env === "web" ? "@hiveio/beekeeper/web" : "@hiveio/beekeeper/node"; + const locWax = env === "web" ? "@hiveio/wax/web" : "@hiveio/wax/node"; // Import required libraries env-dependent const wb = await import(locWorkerBee); const beekeeper = await import(locBeekeeper); + const wax = await import(locWax); // Provide results return { beekeeperFactory: beekeeper.default, - WorkerBee: wb.default + WorkerBee: wb.default, + wax }; };