在使用 jest 做测试的时候想单独测试一个文件夹下的测试文件,可惜,在网上找了大量的解决方法后都不能运行成功
配置 testMatch 使用正则匹配即可
1 | jest --testMatch **/tests/controller/**/*.spec.[jt]s?(x) --verbose |
在使用 jest 做测试的时候想单独测试一个文件夹下的测试文件,可惜,在网上找了大量的解决方法后都不能运行成功
配置 testMatch 使用正则匹配即可
1 | jest --testMatch **/tests/controller/**/*.spec.[jt]s?(x) --verbose |
微信支付
支付宝