I’m trying to test a specific test in my DHIS2 app platform web app, if I were using jest directly I would select to run the specific test with: jest -t 'test name'
However this does not seem to work with yarn test in my dhis2 app platform app. It just ignores this parameter and runs everything. In some cases I read you can pass a parameter through to jest by adding -- after yarn test, but this does not seem to work either.
This was just fixed by @kpvandivier yesterday , you should be able to upgrade the version of @dhis2/cli-app-scripts to latest and then passing a positional argument (yarn test <test name or pattern>) should work
Hi @austin thanks for this! testRegex only seems to allow me to select entire files rather than groups or individual tests within a file. I am just hoping to pass the parameter testNamePatternRegex through to jest.