Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 22, 2023
1 parent 82dd00f commit c938806
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/commands/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', '')
await fs.create(
'package.json',
Expand Down Expand Up @@ -117,7 +117,7 @@ test.group('Build command', (group) => {
assert.equal(command.exitCode, 0)

await assert.fileExists('build/index.js')
await assert.fileExists('build/.adonisrc.json')
await assert.fileExists('build/adonisrc.js')
})

test('do not output when typescript build has errors', async ({ assert, fs }) => {
Expand All @@ -136,7 +136,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', 'const foo = `a`')
await fs.create(
'package.json',
Expand Down Expand Up @@ -188,7 +188,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', 'const foo = `a`')
await fs.create(
'package.json',
Expand Down Expand Up @@ -220,7 +220,7 @@ test.group('Build command', (group) => {

assert.equal(command.exitCode, 0)
await assert.fileExists('build/index.js')
await assert.fileExists('build/.adonisrc.json')
await assert.fileExists('build/adonisrc.js')
})

test('show error when configured assets bundler is missing', async ({ assert, fs }) => {
Expand All @@ -239,7 +239,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', '')

const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down Expand Up @@ -286,7 +286,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', '')

const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down Expand Up @@ -324,7 +324,7 @@ test.group('Build command', (group) => {
})
)

await fs.create('.adonisrc.json', JSON.stringify({}))
await fs.create('adonisrc.ts', `export default {}`)
await fs.create('index.ts', '')

const ace = await new AceFactory().make(fs.baseUrl, {
Expand Down

0 comments on commit c938806

Please sign in to comment.