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

266
Vistas
How do I test a single file using yarn workspaces?

I know I can run a single test file using Jest.

I also know I can run all the tests in a single workspace with:

yarn workspace @mycompany/somepackage test

But how would I run a single test file within a workspace?

I have tried:

yarn workspace @mycompany/somepackage test packages/somepackage/src/index.int.test.ts

and also:

yarn workspace @mycompany/somepackage test src/index.int.test.ts

As I am unsure whether the 'test' expects paths relative to the workspace or not. Both fail with:

No tests found, exiting with code 1

I am using Yarn v1.22.7 and my tests use Jest.

How do I test a single file using Yarn workspaces?

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