我想设置两个不同的环境,并能够在监视模式下运行.
|-- /server
| |-- index.js <- Node
|-- /client
| |-- index.js <- jsdom
|-- package.json
Run Code Online (Sandbox Code Playgroud)
实际上我为每个环境运行两次jest,为每个环境提供不同的配置文件:
$ yarn test -- --config=server.config.json
$ yarn test -- --config=client.config.json
Run Code Online (Sandbox Code Playgroud)
但这并不能让我同时兼顾两者.
jestjs ×1