0

I have TypeScript code, being compiled with the "module": "none" option and single output JavaScript file. I need a JavaScript code that I can run directly in the browser console.

I want to write tests for my TypeScript code. I tried using Jest, but it seems to require import syntax, which isn't an option for me because import isn't compatible with the browser cosnole so I wouldn't be able to run my compiled JavaScript in the console.

What tool and approach can I take to test my TypeScript code while keeping the "module": "none" option, single output file and JavaScript code that can run in the browser console?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.