diff --git a/10-testing/02-HTTP-Tests.adoc b/10-testing/02-HTTP-Tests.adoc index fb29ab00..5c0a83e0 100644 --- a/10-testing/02-HTTP-Tests.adoc +++ b/10-testing/02-HTTP-Tests.adoc @@ -194,6 +194,18 @@ const response = await client.get('posts').end() NOTE: You must call `end` to execute HTTP `client` requests. +==== timeout +Set timeout for test execution: + +[source, js] +---- +test('get list of posts', async ({ client }) => { + const response = await client.get('/posts').end() + + response.assertStatus(200) +}).timeout(0) +---- + == Multipart Requests To make multipart requests and send files with the request body: