File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ sleep 1
8
8
if rewatch clean & > /dev/null;
9
9
then
10
10
success " Repo Cleaned"
11
- else
11
+ else
12
12
error " Error Cleaning Repo"
13
13
exit 1
14
14
fi
15
15
16
- exit_watcher () {
16
+ exit_watcher () {
17
17
# kill watcher by removing lock file
18
18
rm lib/rescript.lock
19
19
}
@@ -23,11 +23,11 @@ success "Watcher Started"
23
23
24
24
sleep 2
25
25
26
- if rewatch build | grep ' Could not start Rewatch:' & > /dev/null;
26
+ if rewatch build | grep ' Could not start Rewatch:' & > /dev/null;
27
27
then
28
28
success " Lock is correctly set"
29
29
exit_watcher
30
- else
30
+ else
31
31
error " Not setting lock correctly"
32
32
exit_watcher
33
33
exit 1
@@ -41,7 +41,7 @@ success "Watcher Started"
41
41
42
42
sleep 2
43
43
44
- if cat tmp.txt | grep ' Could not start Rewatch:' & > /dev/null;
44
+ if cat tmp.txt | grep ' Could not start Rewatch:' & > /dev/null;
45
45
then
46
46
error " Lock not removed correctly"
47
47
exit_watcher
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ bold "Test: It should watch"
6
6
if rewatch clean & > /dev/null;
7
7
then
8
8
success " Repo Cleaned"
9
- else
9
+ else
10
10
error " Error Cleaning Repo"
11
11
exit 1
12
12
fi
13
13
14
- exit_watcher () {
14
+ exit_watcher () {
15
15
# kill watcher by removing lock file
16
16
rm lib/rescript.lock
17
17
}
@@ -23,10 +23,10 @@ echo 'Js.log("added-by-test")' >> ./packages/main/src/Main.res
23
23
24
24
sleep 2
25
25
26
- if node ./packages/main/src/Main.mjs | grep ' added-by-test' & > /dev/null;
26
+ if node ./packages/main/src/Main.mjs | grep ' added-by-test' & > /dev/null;
27
27
then
28
28
success " Output is correct"
29
- else
29
+ else
30
30
error " Output is incorrect"
31
31
exit_watcher
32
32
exit 1
@@ -38,10 +38,10 @@ replace '/Js.log("added-by-test")/d' ./packages/main/src/Main.res;
38
38
39
39
sleep 1
40
40
41
- if git diff --exit-code ./
41
+ if git diff --exit-code ./
42
42
then
43
43
success " Adding and removing changes nothing"
44
- else
44
+ else
45
45
error " Adding and removing changes left some artifacts"
46
46
exit_watcher
47
47
exit 1
You can’t perform that action at this time.
0 commit comments