我将测试与模块放在同一个文件夹中,以避免在树上跳转。绑定时是否可以让microbundle crl跳过测试文件?
我正试着在回购中这样做https://github.com/trajano/react-hooks-tests
这实际上是由于tsc
而不是微束。
只需添加tsconfig.json
"exclude": ["**/*.test.ts", "**/*.test.tsx", "src/test-support/*"]