From ec0ec2ae16c1f04d3228e3170533c6cb25f5a3b5 Mon Sep 17 00:00:00 2001 From: Zabil Cheriya Maliackal Date: Thu, 29 Aug 2024 13:21:41 +0100 Subject: [PATCH] Ignore testing delete rules --- test/unit-tests/browserLauncher.test.js | 1 + test/unit-tests/elements/checkBox.test.js | 1 + test/unit-tests/elements/radioButton.test.js | 1 + test/unit-tests/plugins.test.js | 1 + 4 files changed, 4 insertions(+) diff --git a/test/unit-tests/browserLauncher.test.js b/test/unit-tests/browserLauncher.test.js index 8fd90d768..afa03d12c 100644 --- a/test/unit-tests/browserLauncher.test.js +++ b/test/unit-tests/browserLauncher.test.js @@ -28,6 +28,7 @@ describe("OpenBrowser", () => { "--test-arg3", ]; expect(testArgs).to.include.members(expectedArgs); + // biome-ignore lint: Required for testing delete process.env.TAIKO_BROWSER_ARGS; }); }); diff --git a/test/unit-tests/elements/checkBox.test.js b/test/unit-tests/elements/checkBox.test.js index 072b76f20..678c035e6 100644 --- a/test/unit-tests/elements/checkBox.test.js +++ b/test/unit-tests/elements/checkBox.test.js @@ -68,6 +68,7 @@ describe("CheckBox", () => { afterEach(() => { CheckBox = rewire("../../../lib/elements/checkBox"); dispatchedEvent = null; + // biome-ignore lint: Required for testing delete Object.prototype.checked; }); diff --git a/test/unit-tests/elements/radioButton.test.js b/test/unit-tests/elements/radioButton.test.js index 6f2223307..31324cec5 100644 --- a/test/unit-tests/elements/radioButton.test.js +++ b/test/unit-tests/elements/radioButton.test.js @@ -66,6 +66,7 @@ describe("RadioButton", () => { afterEach(() => { RadioButton = rewire("../../../lib/elements/radioButton"); dispatchedEvent = null; + // biome-ignore lint: Required for testing delete Object.prototype.checked; }); diff --git a/test/unit-tests/plugins.test.js b/test/unit-tests/plugins.test.js index 6c4c64105..6c5e88870 100644 --- a/test/unit-tests/plugins.test.js +++ b/test/unit-tests/plugins.test.js @@ -21,6 +21,7 @@ describe("Plugins", () => { } describe("With ENV variable", () => { afterEach(() => { + // biome-ignore lint: Required for testing delete process.env.TAIKO_PLUGIN; }); it("should give plugin name from ENV variable", () => {