Skip to content

Commit

Permalink
test(timeout): add more timeout time
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Mar 23, 2023
1 parent 12c8ad2 commit 93cb415
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Unit/Commands/BuildCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
*/

import { Artisan } from '@athenna/artisan'
import { Test, TestContext } from '@athenna/test'
import { Exec, File, Folder } from '@athenna/common'
import { Test, TestContext, Timeout } from '@athenna/test'
import { BaseCommandTest } from '#tests/Helpers/BaseCommandTest'

export default class BuildCommandTest extends BaseCommandTest {
@Test()
@Timeout(60000)
public async shouldBeAbleToBuildTheApplication({ assert }: TestContext) {
const { stdout, stderr } = await Artisan.callInChild('build', this.artisan)

Expand All @@ -26,6 +27,7 @@ export default class BuildCommandTest extends BaseCommandTest {
}

@Test()
@Timeout(60000)
public async shouldBeAbleToBuildTheApplicationEvenIfTsConfigAlreadyExistsInTmp({ assert }: TestContext) {
await Artisan.callInChild('build', this.artisan)

Expand All @@ -43,6 +45,7 @@ export default class BuildCommandTest extends BaseCommandTest {
}

@Test()
@Timeout(60000)
public async shouldBeAbleToCleanAllJsAndDTsFilesFromTheApplication({ assert }: TestContext) {
const { stdout, stderr } = await Artisan.callInChild('build --clean', this.artisan)

Expand Down

0 comments on commit 93cb415

Please sign in to comment.