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);