Skip to content

Commit b0a0295

Browse files
committed
unify custom setup
1 parent 5f5e0e1 commit b0a0295

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test_helper.bash

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
load ../node_modules/bats-assert/all
44

5-
EXAMPLE_PACKAGE_DIR="$BATS_TMPDIR/example_package"
6-
mkdir -p "$EXAMPLE_PACKAGE_DIR"
7-
85
setup() {
96
# common nodenv setup
107
unset NODENV_VERSION
@@ -15,7 +12,9 @@ setup() {
1512

1613
export NODENV_ROOT="$BATS_TEST_DIRNAME/fixtures/nodenv_root"
1714

18-
15+
# custom setup
16+
EXAMPLE_PACKAGE_DIR="$BATS_TMPDIR/example_package"
17+
mkdir -p "$EXAMPLE_PACKAGE_DIR"
1918
cd "$EXAMPLE_PACKAGE_DIR" || return 1
2019
}
2120

0 commit comments

Comments
 (0)