diff --git a/.gitignore b/.gitignore index 9868ef64a..92ceda7a9 100644 --- a/.gitignore +++ b/.gitignore @@ -143,3 +143,6 @@ benchmark.md /contracts.ts /devdocs /userdocs + +# test temporary folder +/.test \ No newline at end of file diff --git a/tests/importRequire.sh b/tests/importRequire.sh index 8aaecc616..aad4cf81e 100755 --- a/tests/importRequire.sh +++ b/tests/importRequire.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash rm -rf ./.test mkdir ./.test -mktmp="$(pwd)/.test" -trap "rm -rf $mktmp" EXIT +testdir="$(pwd)/.test" +trap "rm -rf $testdir" EXIT RED="\033[31m" GREEN="\033[32m" YELLOW="\033[33m" @@ -35,7 +35,7 @@ then fi echo -e "${YELLOW}Creating test directory${ENDCOLOR}" -cd $mktmp +cd ./.test echo -e "${YELLOW}Creating package.json type=module${ENDCOLOR}" cat > package.json <