From ae377b185ea6a9090399cc178f085f37c7645d12 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 29 Mar 2022 13:18:09 +0200 Subject: [PATCH] fix(core): update --- test/{test.browser.ts => test.both.ts} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename test/{test.browser.ts => test.both.ts} (86%) 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();