From 5df27c5b3abf1ff1f06ca0d63182c1991ba3ab6a Mon Sep 17 00:00:00 2001 From: Maxim Velesyuk Date: Wed, 17 Jul 2024 10:42:25 +0200 Subject: [PATCH] Update test.md Add documentation regarding custom test options --- docs/cli/test.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/cli/test.md b/docs/cli/test.md index 057274cf67d5..6991080d702d 100644 --- a/docs/cli/test.md +++ b/docs/cli/test.md @@ -10,3 +10,14 @@ Runs an arbitrary command specified in the package's `test` property of its The intended usage of the property is to specify a command that runs unit or integration testing for your program. + + +## Passing custom options + +If you want to pass options to Jest, use the `pnpm run test` command and append any needed options. + +For instance, if you want to run a single test in a single file, run: + +```sh +pnpm --filter core run test test/lockfile.ts -t "lockfile has dev deps even when installing for prod only" +```