Skip to content

Commit a168079

Browse files
author
Roman Heckendorf
committed
TASK: parameterize the integration test script for workingdir
1 parent 1de1bd7 commit a168079

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/integration-test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@ set -e
99
# `husky` git hooks from the scaffold <-> `husky` git hooks from the mono-repo.
1010
#
1111
PWD="$(pwd)"
12+
DEFAULT_WORKINGDIR="../create-react-microservice-test-scaffold"
13+
WORKINGDIR=${1:-$DEFAULT_WORKINGDIR}
1214

1315
printf "\nCleaning up previous runs of the integration-test\n"
14-
rm -rf ../create-react-microservice-test-scaffold
16+
rm -rf $WORKINGDIR
1517

1618
printf "\nCreating the scaffold via the CLI\n"
1719
npx create-react-microservice \
18-
../create-react-microservice-test-scaffold \
20+
$WORKINGDIR \
1921
--license="MIT" \
2022
--npmScope="integration-scope" \
2123
--gitRepoUrl="https://github.com/ImmoweltGroup/create-react-microservice.git"
2224

2325
printf "\nExecuting the tests within the created scaffold\n"
24-
cd ../create-react-microservice-test-scaffold
26+
cd $WORKINGDIR
2527
yarn run lint
2628
yarn run flow
2729

0 commit comments

Comments
 (0)