From 6780729a186c9126089f2e7db63ad8e653790d39 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Feb 2024 21:00:45 -0600 Subject: [PATCH] chore: Add ability to deal with temporary files generated by tests The "install_nextflow" tests generate a new install of Nextflow every time they are run based on the "RUNNER_TEMP" environment variable. Deal with this by adding our RUNNER_TEMP variable to the ava config and making sure none of these installs get committed. --- .gitignore | 6 +++++- package.json | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e17f86f..7d545b3 100644 --- a/.gitignore +++ b/.gitignore @@ -131,4 +131,8 @@ dist # Ignore built ts files __tests__/runner/* -lib/**/* \ No newline at end of file +lib/**/* + +# Testing garbage +.tmp +nxf-v* diff --git a/package.json b/package.json index 6730c2f..e224c9c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "extensions": [ "ts" ], + "environmentVariables": { + "RUNNER_TEMP": "./.tmp" + }, "rewritePaths": { "src/": "lib/" },