Skip to content

Commit

Permalink
test: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 23, 2023
1 parent 10fc5ea commit 721e7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/configure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ test.group('Configure', (group) => {
await fs.create('.env', '')
await fs.createJson('tsconfig.json', {})
await fs.create('start/env.ts', `export default Env.create(new URL('./'), {})`)
await fs.create('start/kernel.ts', `router.use([])`)
await fs.create('adonisrc.ts', `export default defineConfig({}) {}`)

const app = ignitor.createApp('web')
Expand All @@ -54,7 +55,7 @@ test.group('Configure', (group) => {
await assert.fileContains('.env', 'SESSION_DRIVER=cookie')
await assert.fileContains(
'start/env.ts',
`SESSION_DRIVER: Env.schema.enum(['cookie', 'redis', 'file', 'memory' as const])`
`SESSION_DRIVER: Env.schema.enum(['cookie', 'redis', 'file', 'memory'] as const)`
)
}).timeout(6000)
})

0 comments on commit 721e7cc

Please sign in to comment.