From 86daa8aff22ff378c5e6cbf10f92dc3823fa2ccd Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 7 Jul 2021 17:41:50 +0200 Subject: Moved Jest timeout to the commit unit test --- test/setup.ts | 2 -- test/unit/commit.unit.test.ts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/setup.ts b/test/setup.ts index 92a4f3c..3eaa5e7 100644 --- a/test/setup.ts +++ b/test/setup.ts @@ -7,8 +7,6 @@ const promiseExec = promisify(exec); config({ path: "test/test.env" }); export default async function init() { - jest.setTimeout(10000); - const can_access = await access(process.env.BASE_DIR) .then(() => true) .catch(() => false); diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts index b8bd178..5f1d29f 100644 --- a/test/unit/commit.unit.test.ts +++ b/test/unit/commit.unit.test.ts @@ -33,6 +33,8 @@ describe("Commit", () => { let commit: Commit; beforeAll(async () => { + jest.setTimeout(10000); + commit = await repository.latestCommit(); }); -- cgit v1.2.3-18-g5258