@@ -38,47 +38,44 @@ node ./packages/main/src/Main.mjs > ./packages/main/src/output.txt
3838
3939mv ./packages/main/src/Main.res ./packages/main/src/Main2.res
4040rewatch build --snapshot-output & > ../tests/snapshots/rename-file.txt
41+ normalize_paths ../tests/snapshots/rename-file.txt
4142mv ./packages/main/src/Main2.res ./packages/main/src/Main.res
4243
4344# Rename a file with a dependent - this should trigger an error
4445mv ./packages/main/src/InternalDep.res ./packages/main/src/InternalDep2.res
4546rewatch build --snapshot-output & > ../tests/snapshots/rename-file-internal-dep.txt
46- # normalize paths so the snapshot is the same on all machines
4747normalize_paths ../tests/snapshots/rename-file-internal-dep.txt
4848mv ./packages/main/src/InternalDep2.res ./packages/main/src/InternalDep.res
4949
5050# Rename a file with a dependent in a namespaced package - this should trigger an error (regression)
5151mv ./packages/new-namespace/src/Other_module.res ./packages/new-namespace/src/Other_module2.res
5252rewatch build --snapshot-output & > ../tests/snapshots/rename-file-internal-dep-namespace.txt
53- # normalize paths so the snapshot is the same on all machines
5453normalize_paths ../tests/snapshots/rename-file-internal-dep-namespace.txt
5554mv ./packages/new-namespace/src/Other_module2.res ./packages/new-namespace/src/Other_module.res
5655
5756rewatch build & > /dev/null
5857mv ./packages/main/src/ModuleWithInterface.resi ./packages/main/src/ModuleWithInterface2.resi
5958rewatch build --snapshot-output & > ../tests/snapshots/rename-interface-file.txt
60- # normalize paths so the snapshot is the same on all machines
6159normalize_paths ../tests/snapshots/rename-interface-file.txt
6260mv ./packages/main/src/ModuleWithInterface2.resi ./packages/main/src/ModuleWithInterface.resi
6361rewatch build & > /dev/null
6462mv ./packages/main/src/ModuleWithInterface.res ./packages/main/src/ModuleWithInterface2.res
6563rewatch build --snapshot-output & > ../tests/snapshots/rename-file-with-interface.txt
66- # normalize paths so the snapshot is the same on all machines
6764normalize_paths ../tests/snapshots/rename-file-with-interface.txt
6865mv ./packages/main/src/ModuleWithInterface2.res ./packages/main/src/ModuleWithInterface.res
6966rewatch build & > /dev/null
7067
7168# when deleting a file that other files depend on, the compile should fail
7269rm packages/dep02/src/Dep02.res
7370rewatch build --snapshot-output & > ../tests/snapshots/remove-file.txt
74- # normalize paths so the snapshot is the same on all machines
7571normalize_paths ../tests/snapshots/remove-file.txt
7672git checkout -- packages/dep02/src/Dep02.res
7773rewatch build & > /dev/null
7874
7975# it should show an error when we have a dependency cycle
8076echo ' Dep01.log()' >> packages/new-namespace/src/NS_alias.res
8177rewatch build --snapshot-output & > ../tests/snapshots/dependency-cycle.txt
78+ normalize_paths ../tests/snapshots/dependency-cycle.txt
8279git checkout -- packages/new-namespace/src/NS_alias.res
8380
8481# it should compile dev dependencies with the --dev flag
0 commit comments