Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

96
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda