File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8787fi
8888
8989file_count=$( find ./packages/with-dev-deps/test -name * .mjs | wc -l)
90- if [ " $file_count " -eq 1 ];
90+ expected_file_count=1
91+ if [ " $file_count " -eq $expected_file_count ];
9192then
9293 success " Compiled dev dependencies successfully"
9394else
94- error " Expected 2 files to be compiled with the --dev flag, found $file_count "
95+ error " Expected $expected_file_count files to be compiled with the --dev flag, found $file_count "
9596 exit 1
9697fi
9798
98- rewatch clean & > /dev/null
99+ error_output= $( rewatch clean 2>&1 > /dev/null)
99100file_count=$( find ./packages/with-dev-deps -name * .mjs | wc -l)
100101if [ " $file_count " -eq 0 ];
101102then
102103 success " Cleaned dev dependencies successfully"
103104else
104105 error " Expected 0 files remaining after cleaning, found $file_count "
106+ printf " %s\n" " $error_output " >&2
105107 exit 1
106108fi
107109
You can’t perform that action at this time.
0 commit comments