Paul 5 年前
父节点
当前提交
86f6e02a10
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      jest.config.js
  2. 0
    0
      test/utils.test.ts

+ 1
- 1
jest.config.js 查看文件

@@ -2,6 +2,6 @@ module.exports = {
2 2
   transform: {
3 3
     '^.+\\.tsx?$': 'ts-jest',
4 4
   },
5
-  testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
5
+  testRegex: '(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
6 6
   moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
7 7
 };

__test__/utils.test.ts → test/utils.test.ts 查看文件