Jest test files that import typescript modules have to `require` and then use the `default` key

前端 未结 0 1262
野性不改
野性不改 2021-02-20 08:59

I\'m running a test file that imports a typescript module, and as such the test.js file looks something like:

// typescript-module.ts
const fn = ():          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题