diff --git a/test/test.browser.ts b/test/test.both.ts similarity index 86% rename from test/test.browser.ts rename to test/test.both.ts index 0ce355b..7183145 100644 --- a/test/test.browser.ts +++ b/test/test.both.ts @@ -27,7 +27,12 @@ tap.test('first test', async (tools) => { hithere: 'hello', }); console.log(JSON.stringify(result2)); */ - }); +tap.test('should end on nodejs', async (toolsArg) => { + if (globalThis.process) { + toolsArg.delayFor(2000).then(() => globalThis.process.exit(0)); + } +}) + tap.start();