Skip to content

Commit

Permalink
test: cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 19, 2023
1 parent 1e608ab commit 26cf77d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/commands/configure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const BASE_URL = new URL('./tmp/', import.meta.url)
const BASE_PATH = fileURLToPath(BASE_URL)

test.group('Configure command | stubs', (group) => {
group.tap((t) => t.disableTimeout())
group.each.disableTimeout()

test('publish stub using configure command', async ({ assert, fs }) => {
const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down Expand Up @@ -134,7 +134,7 @@ test.group('Configure command | stubs', (group) => {
})

test.group('Configure command | list dependencies', (group) => {
group.tap((t) => t.disableTimeout())
group.each.disableTimeout()

test('list development dependencies to install', async ({ assert, fs }) => {
const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down Expand Up @@ -261,7 +261,7 @@ test.group('Configure command | run', (group) => {
context.fs.basePath = BASE_PATH
})

group.tap((t) => t.disableTimeout())
group.each.disableTimeout()

test('throw error when unable to import package', async ({ assert, fs }) => {
const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down Expand Up @@ -482,7 +482,7 @@ test.group('Configure command | run', (group) => {
})

test.group('Configure command | vinejs', (group) => {
group.tap((t) => t.disableTimeout())
group.each.disableTimeout()

test('register vinejs provider', async ({ assert, fs }) => {
const ace = await new AceFactory().make(fs.baseUrl, {
Expand All @@ -508,6 +508,10 @@ test.group('Configure command | vinejs', (group) => {

await assert.fileContains('adonisrc.ts', '@adonisjs/core/providers/vinejs_provider')
})
})

test.group('Configure command | edge', (group) => {
group.each.disableTimeout()

test('register edge provider', async ({ assert, fs }) => {
const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down

0 comments on commit 26cf77d

Please sign in to comment.