📜  jest regex jsx tsx js ts - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:06.008000             🧑  作者: Mango

代码示例1
//jest.config.js
{
  "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$" 
} 
// matches (spec or test) with .js .jsx .ts .tsx