From 32df7b18bc5b7fd9d268fe457352b885f2f68149 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 22 Jul 2021 11:41:37 +0200 Subject: Data used by tests now in /tmp/nodegit_test & added test teardown script --- test/teardown.ts | 5 +++++ test/test.env | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/teardown.ts (limited to 'test') diff --git a/test/teardown.ts b/test/teardown.ts new file mode 100644 index 0000000..3712af2 --- /dev/null +++ b/test/teardown.ts @@ -0,0 +1,5 @@ +import { remove } from "fs-extra"; + +export default async function teardown() { + await remove(process.env.BASE_DIR); +} \ No newline at end of file diff --git a/test/test.env b/test/test.env index 2742aac..42ff7dd 100644 --- a/test/test.env +++ b/test/test.env @@ -1,4 +1,4 @@ -BASE_DIR=git +BASE_DIR=/tmp/nodegit_test AVAIL_REPO=githermit.git AVAIL_REPO_URL=https://gitlab.com/HampusMat/githermit.git UNAVAIL_REPO=angular -- cgit v1.2.3-18-g5258