Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest regex jsx tsx js ts

//jest.config.js
{
  "testRegex": "(/__tests__/.*|(.|/)(test|spec)).[jt]sx?$" 
} 
// matches (spec or test) with .js .jsx .ts .tsx
 
PREVIOUS NEXT
Tagged: #jest #regex #jsx #tsx #js #ts
ADD COMMENT
Topic
Name
1+5 =