You are missing the semi colon at the end of the first console log to terminate that command.
console.log('test1');
(async function main() {
console.log('test2')
})();
You are missing the semi colon at the end of the first console log to terminate that command.
console.log('test1');
(async function main() {
console.log('test2')
})();