From 1cb84769680c630b0e9de723807bb9a5561f8b4e Mon Sep 17 00:00:00 2001 From: QuiteAFancyEmerald <46467239+QuiteAFancyEmerald@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:29:36 -0700 Subject: [PATCH] maybe it will return fail now correctly --- test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.js b/test.js index 0a8cf34a..f7d098ec 100644 --- a/test.js +++ b/test.js @@ -133,8 +133,10 @@ async function testCommonJSOnPage() { if (rammerheadPassed && ultravioletPassed) { console.log('Both tests passed.'); + process.exit(0); // Exit with success } else { console.error('Tests failed.'); + process.exit(1); // Exit with failure } } catch (error) { console.error('Error in testCommonJSOnPage:', error.message);