Skip to content

Commit ebca2c2

Browse files
committed
test: resolve options
1 parent c4c8797 commit ebca2c2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

e2e/routes.spec.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, it } from 'vitest'
22
import { createRoutesContext } from '../src/core/context'
3-
import { DEFAULT_OPTIONS } from '../src/options'
3+
import { DEFAULT_OPTIONS, resolveOptions } from '../src/options'
44
import { fileURLToPath, URL } from 'url'
55
import { normalize, join } from 'pathe'
66

@@ -11,13 +11,14 @@ const __dirname = fileURLToPath(new URL('./', import.meta.url))
1111
*/
1212

1313
it('generates the routes', async () => {
14-
const context = createRoutesContext({
15-
...DEFAULT_OPTIONS,
16-
// dts: join(__dirname, './__types.d.ts'),
17-
dts: false,
18-
logs: false,
19-
routesFolder: [{ src: join(__dirname, './fixtures/filenames/routes') }],
20-
})
14+
const context = createRoutesContext(
15+
resolveOptions({
16+
// dts: join(__dirname, './__types.d.ts'),
17+
dts: false,
18+
logs: false,
19+
routesFolder: [{ src: join(__dirname, './fixtures/filenames/routes') }],
20+
})
21+
)
2122

2223
await context.scanPages()
2324
expect(

0 commit comments

Comments
 (0)