Skip to content

Commit 859ff61

Browse files
committed
fix
1 parent 971c2d7 commit 859ff61

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

rewatch/tests/compile.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,44 +33,44 @@ fi
3333
node ./packages/main/src/Main.mjs > ./packages/main/src/output.txt
3434

3535
mv ./packages/main/src/Main.res ./packages/main/src/Main2.res
36-
rewatch build --no-timing=true &> ../tests/snapshots/rename-file.txt
36+
rewatch build &> ../tests/snapshots/rename-file.txt
3737
mv ./packages/main/src/Main2.res ./packages/main/src/Main.res
3838

3939
# Rename a file with a dependent - this should trigger an error
4040
mv ./packages/main/src/InternalDep.res ./packages/main/src/InternalDep2.res
41-
rewatch build --no-timing=true &> ../tests/snapshots/rename-file-internal-dep.txt
41+
rewatch build &> ../tests/snapshots/rename-file-internal-dep.txt
4242
# replace the absolute path so the snapshot is the same on all machines
4343
replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/rename-file-internal-dep.txt
4444
mv ./packages/main/src/InternalDep2.res ./packages/main/src/InternalDep.res
4545

4646
# Rename a file with a dependent in a namespaced package - this should trigger an error (regression)
4747
mv ./packages/new-namespace/src/Other_module.res ./packages/new-namespace/src/Other_module2.res
48-
rewatch build --no-timing=true &> ../tests/snapshots/rename-file-internal-dep-namespace.txt
48+
rewatch build &> ../tests/snapshots/rename-file-internal-dep-namespace.txt
4949
# replace the absolute path so the snapshot is the same on all machines
5050
replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/rename-file-internal-dep-namespace.txt
5151
mv ./packages/new-namespace/src/Other_module2.res ./packages/new-namespace/src/Other_module.res
5252

5353
rewatch build &> /dev/null
5454
mv ./packages/main/src/ModuleWithInterface.resi ./packages/main/src/ModuleWithInterface2.resi
55-
rewatch build --no-timing=true &> ../tests/snapshots/rename-interface-file.txt
55+
rewatch build &> ../tests/snapshots/rename-interface-file.txt
5656
mv ./packages/main/src/ModuleWithInterface2.resi ./packages/main/src/ModuleWithInterface.resi
5757
rewatch build &> /dev/null
5858
mv ./packages/main/src/ModuleWithInterface.res ./packages/main/src/ModuleWithInterface2.res
59-
rewatch build --no-timing=true &> ../tests/snapshots/rename-file-with-interface.txt
59+
rewatch build &> ../tests/snapshots/rename-file-with-interface.txt
6060
mv ./packages/main/src/ModuleWithInterface2.res ./packages/main/src/ModuleWithInterface.res
6161
rewatch build &> /dev/null
6262

6363
# when deleting a file that other files depend on, the compile should fail
6464
rm packages/dep02/src/Dep02.res
65-
rewatch build --no-timing=true &> ../tests/snapshots/remove-file.txt
65+
rewatch build &> ../tests/snapshots/remove-file.txt
6666
# replace the absolute path so the snapshot is the same on all machines
6767
replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/remove-file.txt
6868
git checkout -- packages/dep02/src/Dep02.res
6969
rewatch build &> /dev/null
7070

7171
# it should show an error when we have a dependency cycle
7272
echo 'Dep01.log()' >> packages/new-namespace/src/NS_alias.res
73-
rewatch build --no-timing=true &> ../tests/snapshots/dependency-cycle.txt
73+
rewatch build &> ../tests/snapshots/dependency-cycle.txt
7474
git checkout -- packages/new-namespace/src/NS_alias.res
7575
rewatch build &> /dev/null
7676

rewatch/tests/snapshots/remove-file.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
The module or file Dep02 can't be found.
1919
- If it's a third-party dependency:
20-
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in bsconfig.json?
21-
- Did you include the file's directory to the "sources" in bsconfig.json?
20+
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in rescript.json?
21+
- Did you include the file's directory to the "sources" in rescript.json?
2222

2323

2424

rewatch/tests/snapshots/rename-file-internal-dep-namespace.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
The module or file Other_module can't be found.
1717
- If it's a third-party dependency:
18-
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in bsconfig.json?
19-
- Did you include the file's directory to the "sources" in bsconfig.json?
18+
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in rescript.json?
19+
- Did you include the file's directory to the "sources" in rescript.json?
2020

2121

2222
Hint: Did you mean Other_module2?

rewatch/tests/snapshots/rename-file-internal-dep.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
The module or file InternalDep can't be found.
1919
- If it's a third-party dependency:
20-
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in bsconfig.json?
21-
- Did you include the file's directory to the "sources" in bsconfig.json?
20+
- Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in rescript.json?
21+
- Did you include the file's directory to the "sources" in rescript.json?
2222

2323

2424

rewatch/tests/suite-ci.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ export REWATCH_EXECUTABLE
1212

1313
source ./utils.sh
1414

15+
bold "Rescript version"
16+
(cd ../testrepo && yarn rescript -v)
17+
1518
# we need to reset the yarn.lock and package.json to the original state
1619
# so there is not diff in git. The CI will install new ReScript package
1720
bold "Reset package.json and yarn.lock"
1821
git checkout ../testrepo/yarn.lock
1922
git checkout ../testrepo/package.json
2023
success "Reset package.json and yarn.lock"
2124

22-
bold "Rescript version"
23-
(cd ../testrepo && yarn rescript -v)
2425

2526
bold "Check if build exists"
2627
if test -f ../target/release/rewatch;

0 commit comments

Comments
 (0)