Skip to content

Commit

Permalink
add emoji and ignore lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Jan 22, 2024
1 parent de6f312 commit 8319663
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ lib/bs


test-compiler-examples/node_modules
test-compiler-examples/package-lock.json
test-compiler-examples/lib
test-compiler-examples/*.tgz
_tempFile.res
6 changes: 4 additions & 2 deletions scripts/ExamplesTest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ var someError = {
};

tests.forEach(function (param) {
var results = param[1];
var file = param[0];
var match = Core__Array.reduce(param[1], [
var match = Core__Array.reduce(results, [
[],
[]
], (function (acc, result) {
Expand All @@ -220,7 +221,8 @@ tests.forEach(function (param) {
return acc;
}));
var err = match[1];
console.log("" + file + ": Sucesss: " + match[0].length.toString() + ". Failed: " + err.length.toString() + "");
var emoji = Belt_Array.some(results, Belt_Result.isError) ? "❌" : "✅";
console.log("" + emoji + " " + file + ": Sucesss: " + match[0].length.toString() + ". Failed: " + err.length.toString() + "");
err.forEach(function (result) {
if (result.TAG === /* Ok */0) {
return ;
Expand Down
4 changes: 3 additions & 1 deletion scripts/ExamplesTest.res
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ let () = {
acc
})

let emoji = results->Belt.Array.some(result => Belt.Result.isError(result)) ? "❌" : "✅"

Console.log(
`${file}: Sucesss: ${Array.length(ok)->Int.toString}. Failed: ${Array.length(
`${emoji} ${file}: Sucesss: ${Array.length(ok)->Int.toString}. Failed: ${Array.length(
err,
)->Int.toString}`,
)
Expand Down

0 comments on commit 8319663

Please sign in to comment.