From a6e9ec485a435745e4259783175046a9c6dcccf8 Mon Sep 17 00:00:00 2001 From: Jaap Frolich Date: Wed, 10 Apr 2024 17:09:22 +0200 Subject: [PATCH] new snapshots --- tests/snapshots/dependency-cycle.txt | 14 ++++----- tests/snapshots/remove-file.txt | 31 ++++++++++++++----- .../snapshots/rename-file-with-interface.txt | 19 ++++++------ tests/snapshots/rename-file.txt | 17 +++++----- tests/snapshots/rename-interface-file.txt | 19 ++++++------ 5 files changed, 59 insertions(+), 41 deletions(-) diff --git a/tests/snapshots/dependency-cycle.txt b/tests/snapshots/dependency-cycle.txt index 5d01517..a2017d3 100644 --- a/tests/snapshots/dependency-cycle.txt +++ b/tests/snapshots/dependency-cycle.txt @@ -1,10 +1,10 @@ -[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/10 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 +[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/10 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 diff --git a/tests/snapshots/remove-file.txt b/tests/snapshots/remove-file.txt index 9e2bf71..7f1550a 100644 --- a/tests/snapshots/remove-file.txt +++ b/tests/snapshots/remove-file.txt @@ -1,8 +1,23 @@ -[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/10 0.00s - [5/7] ๏ธโœ… Parsed 0 source files in 0.00s - [6/7] ๏ธโœ… Collected deps in 0.00s - [7/7] ๏ธโœ… Compiled 0 modules in 0.00s - ๏ธโœ… Finished Compilation in 0.00s +[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/10 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 + + 1 โ”‚ let log = () => { + 2 โ”‚ Js.log("02") + 3 โ”‚ Dep02.log() + 4 โ”‚ } + 5 โ”‚ + + The module or file Dep02 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? + + diff --git a/tests/snapshots/rename-file-with-interface.txt b/tests/snapshots/rename-file-with-interface.txt index 3949a07..262f7ad 100644 --- a/tests/snapshots/rename-file-with-interface.txt +++ b/tests/snapshots/rename-file-with-interface.txt @@ -1,9 +1,10 @@ -[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/10 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 +[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/10 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 diff --git a/tests/snapshots/rename-file.txt b/tests/snapshots/rename-file.txt index 93be4fa..ebe8b9c 100644 --- a/tests/snapshots/rename-file.txt +++ b/tests/snapshots/rename-file.txt @@ -1,8 +1,9 @@ -[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/10 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 +[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/10 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 diff --git a/tests/snapshots/rename-interface-file.txt b/tests/snapshots/rename-interface-file.txt index cb57f6c..352b92e 100644 --- a/tests/snapshots/rename-interface-file.txt +++ b/tests/snapshots/rename-interface-file.txt @@ -1,9 +1,10 @@ -[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/10 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 +[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/10 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