Skip to content

Commit

Permalink
test: add tests for timeout args
Browse files Browse the repository at this point in the history
  • Loading branch information
Miikis committed Apr 6, 2022
1 parent b8a4a9f commit ab9f2ba
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/integration/cli/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,30 @@ describe('CLI Usage', () => {
'Invalid project directory provided, no such directory'
)
})

test('should validate keepAliveTimeout argument', async () => {
const output = await runNextCommand(
['start', dir, '--keepAliveTimeout', 'seventy-five-thousand'],
{
stderr: true,
}
)
expect(output.stderr).toEqual(
'Invalid type for --keepAliveTimeout; provide an integer in milliseconds'
)
})

test('should validate headersTimeout argument', async () => {
const output = await runNextCommand(
['start', dir, '--headersTimeout', 'seventy-five-thousand'],
{
stderr: true,
}
)
expect(output.stderr).toEqual(
'Invalid type for --headersTimeout; provide an integer in milliseconds'
)
})
})

describe('export', () => {
Expand Down

0 comments on commit ab9f2ba

Please sign in to comment.