|
33 | 33 | node ./packages/main/src/Main.mjs > ./packages/main/src/output.txt
|
34 | 34 |
|
35 | 35 | 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 |
37 | 37 | mv ./packages/main/src/Main2.res ./packages/main/src/Main.res
|
38 | 38 |
|
39 | 39 | # Rename a file with a dependent - this should trigger an error
|
40 | 40 | 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 |
42 | 42 | # replace the absolute path so the snapshot is the same on all machines
|
43 | 43 | replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/rename-file-internal-dep.txt
|
44 | 44 | mv ./packages/main/src/InternalDep2.res ./packages/main/src/InternalDep.res
|
45 | 45 |
|
46 | 46 | # Rename a file with a dependent in a namespaced package - this should trigger an error (regression)
|
47 | 47 | 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 |
49 | 49 | # replace the absolute path so the snapshot is the same on all machines
|
50 | 50 | replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/rename-file-internal-dep-namespace.txt
|
51 | 51 | mv ./packages/new-namespace/src/Other_module2.res ./packages/new-namespace/src/Other_module.res
|
52 | 52 |
|
53 | 53 | rewatch build &> /dev/null
|
54 | 54 | 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 |
56 | 56 | mv ./packages/main/src/ModuleWithInterface2.resi ./packages/main/src/ModuleWithInterface.resi
|
57 | 57 | rewatch build &> /dev/null
|
58 | 58 | 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 |
60 | 60 | mv ./packages/main/src/ModuleWithInterface2.res ./packages/main/src/ModuleWithInterface.res
|
61 | 61 | rewatch build &> /dev/null
|
62 | 62 |
|
63 | 63 | # when deleting a file that other files depend on, the compile should fail
|
64 | 64 | 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 |
66 | 66 | # replace the absolute path so the snapshot is the same on all machines
|
67 | 67 | replace "s/$(pwd | sed "s/\//\\\\\//g")//g" ../tests/snapshots/remove-file.txt
|
68 | 68 | git checkout -- packages/dep02/src/Dep02.res
|
69 | 69 | rewatch build &> /dev/null
|
70 | 70 |
|
71 | 71 | # it should show an error when we have a dependency cycle
|
72 | 72 | 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 |
74 | 74 | git checkout -- packages/new-namespace/src/NS_alias.res
|
75 | 75 | rewatch build &> /dev/null
|
76 | 76 |
|
|
0 commit comments