mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
10 lines
259 B
JavaScript
10 lines
259 B
JavaScript
function getWorkerState() {
|
|
return globalThis.__vitest_worker__;
|
|
}
|
|
function getCurrentEnvironment() {
|
|
const state = getWorkerState();
|
|
return state == null ? void 0 : state.environment.name;
|
|
}
|
|
|
|
export { getCurrentEnvironment as a, getWorkerState as g };
|