I\'ve started a Create React App project with --typescript. When I write a test Im getting a compiler error:
// something-test.tsx test(\'something\', ()=>{
You do not have any import statements in your code. This basically means you are not testing anything outside of the test file.
import
If you test something that is not in the test code (and therefore import something), the test file will become a module and the error will go away