@@ -3,7 +3,7 @@ import { findFileDirective } from './file-paths'
33
44test ( 'Detecting v3 directives that point to files' , async ( ) => {
55 function find ( text : string ) {
6- return findFileDirective ( { enabled : true , v4 : false } , text )
6+ return findFileDirective ( { enabled : true , v4 : false , features : [ ] } , text )
77 }
88
99 await expect ( find ( '@config "./' ) ) . resolves . toEqual ( {
@@ -22,7 +22,7 @@ test('Detecting v3 directives that point to files', async () => {
2222
2323test ( 'Detecting v4 directives that point to files' , async ( ) => {
2424 function find ( text : string ) {
25- return findFileDirective ( { enabled : true , v4 : true } , text )
25+ return findFileDirective ( { enabled : true , v4 : true , features : [ ] } , text )
2626 }
2727
2828 await expect ( find ( '@config "./' ) ) . resolves . toEqual ( {
@@ -64,7 +64,7 @@ test('Detecting v4 directives that point to files', async () => {
6464
6565test ( '@source inline is ignored' , async ( ) => {
6666 function find ( text : string ) {
67- return findFileDirective ( { enabled : true , v4 : true } , text )
67+ return findFileDirective ( { enabled : true , v4 : true , features : [ ] } , text )
6868 }
6969
7070 await expect ( find ( '@source inline("' ) ) . resolves . toEqual ( null )
0 commit comments