Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

97
Visualizações
single glob pattern to target all .test/.spec files TSConfig

I would like to exclude all test files in tsconfig.js. Files that should be excluded

*.test.ts
*.test.tsx
*.test.jsx
*.test.js
*.spec.ts
*.spec.tsx
*.spec.jsx
*.spec.js

I tried this

exclude: ["**/*.+(spec|test).{ts,tsx,js,jsx}"]

and this

exclude: [
  "**/*.+(spec|test).ts",
  "**/*.+(spec|test).tsx",
  "**/*.+(spec|test).js",
  "**/*.+(spec|test).jsx"
]

But it is not working. Is it necessary that we should specify each extension separately? Like

exclude: [
  "**/*.spec.ts",
  "**/*.spec.tsx",
  "**/*.test.ts",
  "**/*.test.tsx"
  // and goes on for .js and .jsx files
]

If YES, then what is the point of using glob pattern?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda