Skip to content

Commit

Permalink
rewrite test files
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandpeelen committed Nov 15, 2024
1 parent 8d439bf commit db88aea
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 58 deletions.
2 changes: 1 addition & 1 deletion tests/lib/rewatch.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
57150
95867
8 changes: 1 addition & 7 deletions tests/snapshots/dependency-cycle.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[4/7] 🧹 Cleaning up previous build...[4/7] 🧹 Cleaned 0/11 0.00s
[5/7] 🧱 Parsed 1 source files in 0.00s
[6/7] ️🌴 Collected deps in 0.00s
[7/7] ️🛑 Compiled 0 modules in 0.00s

Can't continue... Found a circular dependency in your code:
NewNamespace.NS_alias -> Dep01 -> Dep02 -> NS -> NewNamespace.NS_alias

Error Building:  ️🛑 Error Running Incremental Build:  ️🛑 Failed to Compile. See Errors Above
Expand Down
8 changes: 1 addition & 7 deletions tests/snapshots/remove-file.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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 1 modules in 0.00s

We've found a bug for you!
/packages/dep01/src/Dep01.res:3:9-17
Expand All @@ -21,4 +14,5 @@
- Did you include the file's directory to the "sources" in bsconfig.json?



Error Building:  ️🛑 Error Running Incremental Build:  ️🛑 Failed to Compile. See Errors Above
Expand Down
8 changes: 1 addition & 7 deletions tests/snapshots/rename-file-internal-dep-namespace.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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

We've found a bug for you!
/packages/new-namespace/src/NS_alias.res:2:1-16
Expand All @@ -21,4 +14,5 @@

Hint: Did you mean Other_module2?


Error Building:  ️🛑 Error Running Incremental Build:  ️🛑 Failed to Compile. See Errors Above
Expand Down
8 changes: 1 addition & 7 deletions tests/snapshots/rename-file-internal-dep.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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 2 modules in 0.00s

We've found a bug for you!
/packages/main/src/Main.res:4:8-24
Expand All @@ -21,4 +14,5 @@
- Did you include the file's directory to the "sources" in bsconfig.json?



Error Building:  ️🛑 Error Running Incremental Build:  ️🛑 Failed to Compile. See Errors Above
Expand Down
10 changes: 0 additions & 10 deletions tests/snapshots/rename-file-with-interface.txt
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...Warning: No implementation file found for interface file (skipping): src/ModuleWithInterface.resi
[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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 1 modules in 0.00s

✨ Finished Compilation in 0.00s
9 changes: 0 additions & 9 deletions tests/snapshots/rename-file.txt
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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 1 modules in 0.00s

✨ Finished Compilation in 0.00s
10 changes: 0 additions & 10 deletions tests/snapshots/rename-interface-file.txt
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
[1/7]📦 Building package tree...[1/7] 📦 Built package tree in 0.00s
[2/7] 🕵️ Finding source files...Warning: No implementation file found for interface file (skipping): src/ModuleWithInterface2.resi
[2/7] 🕵️ Found source files in 0.00s
[3/7] 📝 Reading compile state...[3/7] 📝 Read compile state 0.00s
[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 1 modules in 0.00s

✨ Finished Compilation in 0.00s

0 comments on commit db88aea

Please sign in to comment.