aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-22 11:41:37 +0200
committerHampusM <hampus@hampusmat.com>2021-07-22 11:41:37 +0200
commit32df7b18bc5b7fd9d268fe457352b885f2f68149 (patch)
tree24243d750481cb269f6edc1a7a47f9d9a459dccc /test
parente00a8a2356ceb6cc2698001ae838abcbdec36188 (diff)
Data used by tests now in /tmp/nodegit_test & added test teardown script
Diffstat (limited to 'test')
-rw-r--r--test/teardown.ts5
-rw-r--r--test/test.env2
2 files changed, 6 insertions, 1 deletions
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