From 4f714784d5e62ec8bb74a7942e33704dbe871e6f Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Sat, 18 Nov 2023 10:52:03 +0100 Subject: [PATCH] chore: split test suites & remove coverage thresholds --- jest.config.json | 8 ++++---- tests/prepare.test.js | 11 +++++++++++ tests/{index.test.js => verify-conditions.test.js} | 6 ------ 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 tests/prepare.test.js rename tests/{index.test.js => verify-conditions.test.js} (92%) diff --git a/jest.config.json b/jest.config.json index 2142d27..d6a4143 100644 --- a/jest.config.json +++ b/jest.config.json @@ -3,10 +3,10 @@ "collectCoverageFrom": ["lib/**/*.js"], "coverageThreshold": { "global": { - "statements": 100, - "branches": 100, - "functions": 100, - "lines": 100 + "statements": 0, + "branches": 0, + "functions": 0, + "lines": 0 } }, "transform": {} diff --git a/tests/prepare.test.js b/tests/prepare.test.js new file mode 100644 index 0000000..08e4e90 --- /dev/null +++ b/tests/prepare.test.js @@ -0,0 +1,11 @@ +import { prepare } from "../lib"; + +describe("prepare", () => { + it("should be defined", () => { + expect(prepare).toBeDefined(); + }); + + it.todo("should update mix.exs"); + + it.todo("should preserve indentation and newline"); +}); diff --git a/tests/index.test.js b/tests/verify-conditions.test.js similarity index 92% rename from tests/index.test.js rename to tests/verify-conditions.test.js index 7f42e53..ea4a4ac 100644 --- a/tests/index.test.js +++ b/tests/verify-conditions.test.js @@ -52,9 +52,3 @@ describe("verifyConditions", () => { } }); }); - -describe("prepare", () => { - it.todo("should update mix.exs"); - - it.todo("should preserve indentation and newline"); -});