diff --git a/smoke-tests/smoke-test-cjs.cjs b/smoke-tests/smoke-test-cjs.cjs index 31375347..40d0bdd7 100644 --- a/smoke-tests/smoke-test-cjs.cjs +++ b/smoke-tests/smoke-test-cjs.cjs @@ -4,21 +4,11 @@ const assert = require('node:assert'); const concurrently = require('../index.js'); -(async () => { - try { - // Assert the functions loaded by checking their names load and types are correct - assert.strictEqual( - typeof concurrently === 'function', - true, - 'Expected default to be function', - ); - - console.info('Imported cjs successfully'); - } catch (error) { - console.error(error); - console.debug(error.stack); - - // Prevent an unhandled rejection, exit gracefully. - process.exit(1); - } -})(); +// Assert the functions loaded by checking their names load and types are correct +assert.strictEqual( + typeof concurrently === 'function', + true, + 'Expected default to be function', +); + +console.info('Imported cjs successfully'); diff --git a/smoke-tests/smoke-test-esm.mjs b/smoke-tests/smoke-test-esm.mjs index cf457fb3..9f88dbf1 100644 --- a/smoke-tests/smoke-test-esm.mjs +++ b/smoke-tests/smoke-test-esm.mjs @@ -5,21 +5,7 @@ import assert from 'node:assert'; import concurrently from '../index.mjs'; -(async () => { - try { - // Assert the functions loaded by checking their names load and types are correct - assert.strictEqual( - typeof concurrently === 'function', - true, - 'Expected default to be function', - ); +// Assert the functions loaded by checking their names load and types are correct +assert.strictEqual(typeof concurrently === 'function', true, 'Expected default to be function'); - console.info('Imported esm successfully'); - } catch (error) { - console.error(error); - console.debug(error.stack); - - // Prevent an unhandled rejection, exit gracefully. - process.exit(1); - } -})(); +console.info('Imported esm successfully');