aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-07 17:41:50 +0200
committerHampusM <hampus@hampusmat.com>2021-07-07 17:41:50 +0200
commit86daa8aff22ff378c5e6cbf10f92dc3823fa2ccd (patch)
tree8f99cac799c25bcb788f37143fccecfb4c7553f0
parenta68d02e222c337144d9f384219a893c14e199411 (diff)
Moved Jest timeout to the commit unit test
-rw-r--r--test/setup.ts2
-rw-r--r--test/unit/commit.unit.test.ts2
2 files changed, 2 insertions, 2 deletions
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();
});