Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

265
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!