aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to '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();
});