File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cd ../testrepo
55
66bold " Test: It should compile" 
77
8- if  rewatch clean ; 
8+ if  rewatch clean & >  /dev/null ; 
99then 
1010  success " Repo Cleaned" 
1111else 
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ exit_watcher() {
1919}
2020
2121rewatch_bg watch >  /dev/null 2>&1  & 
22- echo  " Started watcher in background" 
2322
2423sleep 1
2524
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ export REWATCH_EXECUTABLE
1313source  ./utils.sh
1414
1515bold " Rescript version" 
16- (cd ../testrepo &&  yarn  rescript -v)
16+ (cd ../testrepo &&  ./node_modules/.bin/ rescript -v)
1717
1818#  we need to reset the yarn.lock and package.json to the original state
1919#  so there is not diff in git. The CI will install new ReScript package
2020bold " Reset package.json and yarn.lock" 
21- git checkout ../testrepo/yarn.lock
22- git checkout ../testrepo/package.json
21+ git checkout ../testrepo/yarn.lock  & >  /dev/null 
22+ git checkout ../testrepo/package.json  & >  /dev/null 
2323success " Reset package.json and yarn.lock" 
2424
2525bold " Make sure the testrepo is clean" 
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ success() { echo -e "- ✅ \033[32m$1\033[0m"; }
44error () { echo  -e " - 🛑 \033[31m$1 \033[0m" ;  }
55bold () { echo  -e " \033[1m$1 \033[0m" ;  }
66rewatch () { RUST_BACKTRACE=1 $REWATCH_EXECUTABLE  --no-timing=true $@ ;  }
7+ rewatch_bg () { RUST_BACKTRACE=1 nohup $REWATCH_EXECUTABLE  --no-timing=true $@ ;  }
78
89replace () {
910  if  [[ $OSTYPE  ==  ' darwin' *  ]]; 
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cd ../testrepo
33
44bold " Test: It should watch" 
55
6- if  rewatch clean ; 
6+ if  rewatch clean & >  /dev/null ; 
77then 
88  success " Repo Cleaned" 
99else  
@@ -16,7 +16,7 @@ exit_watcher() {
1616  rm lib/rewatch.lock
1717}
1818
19- rewatch  watch  & 
19+ rewatch_bg  watch >  /dev/null  2>&1  & 
2020success " Watcher Started" 
2121
2222echo  ' Js.log("added-by-test")'   >>  ./packages/main/src/Main.res
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments