I\'m using Puppeteer and Jest to run some front end tests.
My tests look as follows:
describe("Profile Ta
For Jest 24.9+ we just need to add --testTimeout in the command line
--testTimeout= 10000 // timeout of 10s
The default timeout value is 5000. This will be applicable for all test cases.
or if you want to give timeout to particular function only then you can use this syntax while declaring the test case.
test(name, fn, timeout)
example
test('example', async () => {
}, 10000); // timeout of 10s (default is 5000)