diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-07 17:41:50 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-07 17:41:50 +0200 |
commit | 86daa8aff22ff378c5e6cbf10f92dc3823fa2ccd (patch) | |
tree | 8f99cac799c25bcb788f37143fccecfb4c7553f0 /test | |
parent | a68d02e222c337144d9f384219a893c14e199411 (diff) |
Moved Jest timeout to the commit unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/setup.ts | 2 | ||||
-rw-r--r-- | test/unit/commit.unit.test.ts | 2 |
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(); }); |