Say I have the following test:
describe('foo', () => {
it('bar', () => {
expect(1).toBe(2)
})
})
in a file named foo.application.test.ts
And the following command in my package.json:
jest --testRegex '.*.application.test.ts'"
Running these tests fails, as you would expect. However, changing my command to:
jest --globalSetup ./tests/support/instantiateApplicationTests.ts --testRegex '.*.application.test.ts'"
Results in no tests being run at all ( the global setup file does exist), with the following log:
yarn run v1.22.4
$ jest --globalSetup ./tests/support/instantiateApplicationTests.ts --testRegex '.*.application.test.ts'
✨ Done in 0.81s.
How am I misusing globalsetup here?
Aucun commentaire:
Enregistrer un commentaire