@@ -7,7 +7,7 @@ import dedent from 'dedent';
7
7
8
8
describe ( 'astToSchema()' , ( ) => {
9
9
describe ( 'Schema ./__testSchema__' , ( ) => {
10
- const ast = directoryToAst ( module , { relativePath : './__testSchema__' } ) ;
10
+ const ast = directoryToAst ( module , { rootDir : './__testSchema__' } ) ;
11
11
const sc = astToSchema ( ast ) ;
12
12
13
13
it ( 'should return schema composer' , ( ) => {
@@ -97,7 +97,7 @@ describe('astToSchema()', () => {
97
97
98
98
it ( 'should properly set name for nested fields with dot notation' , ( ) => {
99
99
const ast = directoryToAst ( module , {
100
- relativePath : './__testSchema__' ,
100
+ rootDir : './__testSchema__' ,
101
101
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 / ,
102
102
} ) ;
103
103
const sc = astToSchema ( ast ) ;
@@ -123,7 +123,7 @@ describe('astToSchema()', () => {
123
123
describe ( 'astToSchema()' , ( ) => {
124
124
it ( 'should properly add prefix for created TypeNames' , ( ) => {
125
125
const ast = directoryToAst ( module , {
126
- relativePath : './__testSchema__' ,
126
+ rootDir : './__testSchema__' ,
127
127
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 / ,
128
128
} ) ;
129
129
const sc = astToSchema ( ast , { prefix : 'Corp' , suffix : 'Old' } ) ;
0 commit comments