@@ -7,7 +7,7 @@ import dedent from 'dedent';
77
88describe ( 'astToSchema()' , ( ) => {
99 describe ( 'Schema ./__testSchema__' , ( ) => {
10- const ast = directoryToAst ( module , { relativePath : './__testSchema__' } ) ;
10+ const ast = directoryToAst ( module , { rootDir : './__testSchema__' } ) ;
1111 const sc = astToSchema ( ast ) ;
1212
1313 it ( 'should return schema composer' , ( ) => {
@@ -97,7 +97,7 @@ describe('astToSchema()', () => {
9797
9898 it ( 'should properly set name for nested fields with dot notation' , ( ) => {
9999 const ast = directoryToAst ( module , {
100- relativePath : './__testSchema__' ,
100+ rootDir : './__testSchema__' ,
101101 include : / q u e r y \. a u t h $ | q u e r y \. a u t h \/ n e s t e d / ,
102102 } ) ;
103103 const sc = astToSchema ( ast ) ;
@@ -123,7 +123,7 @@ describe('astToSchema()', () => {
123123 describe ( 'astToSchema()' , ( ) => {
124124 it ( 'should properly add prefix for created TypeNames' , ( ) => {
125125 const ast = directoryToAst ( module , {
126- relativePath : './__testSchema__' ,
126+ rootDir : './__testSchema__' ,
127127 include : / q u e r y \. a u t h $ | q u e r y \. a u t h \/ n e s t e d / ,
128128 } ) ;
129129 const sc = astToSchema ( ast , { prefix : 'Corp' , suffix : 'Old' } ) ;
0 commit comments