File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { expect , it } from 'vitest'
2
2
import { createRoutesContext } from '../src/core/context'
3
- import { DEFAULT_OPTIONS } from '../src/options'
3
+ import { DEFAULT_OPTIONS , resolveOptions } from '../src/options'
4
4
import { fileURLToPath , URL } from 'url'
5
5
import { normalize , join } from 'pathe'
6
6
@@ -11,13 +11,14 @@ const __dirname = fileURLToPath(new URL('./', import.meta.url))
11
11
*/
12
12
13
13
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
+ )
21
22
22
23
await context . scanPages ( )
23
24
expect (
You can’t perform that action at this time.
0 commit comments