Skip to content

Commit

Permalink
Fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed May 23, 2024
1 parent 4892dc9 commit 5cf0f4f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/snapshots/remove-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 1/11 0.00s
[5/7] 🧱 Parsed 0 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] ️🛑 Compiled 2 modules in 0.00s
[7/7] ️🛑 Compiled 1 modules in 0.00s

We've found a bug for you!
/packages/dep01/src/Dep01.res:3:9-17
Expand Down
19 changes: 17 additions & 2 deletions tests/snapshots/rename-file-internal-dep-namespace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 2/11 0.00s
[5/7] 🧱 Parsed 2 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] 🤺 ️Compiled 6 modules in 0.00s
[7/7] ️🛑 Compiled 3 modules in 0.00s

✨ Finished Compilation in 0.00s
We've found a bug for you!
/Users/jfrolich/development/rewatch/testrepo/packages/new-namespace/src/NS_alias.res:2:1-16

1 │ let hello_world = () => "Hello world"
2 │ Other_module.bla()
3 │

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


Hint: Did you mean Other_module2?

Error Building:  ️🛑 Error Running Incremental Build:  ️🛑 Failed to Compile. See Errors Above
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/rename-file-internal-dep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 2/11 0.00s
[5/7] 🧱 Parsed 2 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] ️🛑 Compiled 3 modules in 0.00s
[7/7] ️🛑 Compiled 2 modules in 0.00s

We've found a bug for you!
/Users/jfrolich/development/rewatch/testrepo/packages/main/src/Main.res:4:8-24
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/rename-file-with-interface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 2/11 0.00s
[5/7] 🧱 Parsed 1 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] 🤺 ️Compiled 2 modules in 0.00s
[7/7] 🤺 ️Compiled 1 modules in 0.00s

✨ Finished Compilation in 0.00s
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/rename-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 1/11 0.00s
[5/7] 🧱 Parsed 1 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] 🤺 ️Compiled 2 modules in 0.00s
[7/7] 🤺 ️Compiled 1 modules in 0.00s

✨ Finished Compilation in 0.00s
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/rename-interface-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 1/11 0.00s
[5/7] 🧱 Parsed 1 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] 🤺 ️Compiled 2 modules in 0.00s
[7/7] 🤺 ️Compiled 1 modules in 0.00s

✨ Finished Compilation in 0.00s
Expand Down

0 comments on commit 5cf0f4f

Please sign in to comment.