1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-02 08:33:43 +00:00

chore(dev): Switch to using build constant for isDev check

This commit is contained in:
Justin Baur
2025-09-05 19:12:21 -04:00
committed by GitHub
parent 1a0d3e3ada
commit 7eb89eb45a
7 changed files with 29 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ jest.mock("@bitwarden/desktop-napi", () => {
describe("ElectronLogMainService", () => {
it("sets dev based on electron method", () => {
process.env.ELECTRON_IS_DEV = "1";
globalThis.BIT_ENVIRONMENT = "development";
const logService = new ElectronLogMainService();
expect(logService).toEqual(expect.objectContaining({ isDev: true }) as any);
});