@@ -8,7 +8,7 @@ import * as utils from '../../../utils/miscellaneous.js';
88import { configFixture } from '../../../__tests__/fixtures/config.js' ;
99
1010describe ( 'split' , ( ) => {
11- const openapiDir = 'test' ;
11+ const openapiDir = 'output/split- test' ;
1212 const componentsFiles : ComponentsFiles = { } ;
1313
1414 beforeEach ( ( ) => {
@@ -97,7 +97,10 @@ describe('split', () => {
9797 ) ;
9898
9999 expect ( openapiCore . slash ) . toHaveBeenCalledWith ( 'paths/test.yaml' ) ;
100- expect ( path . relative ) . toHaveBeenCalledWith ( 'test' , 'test/paths/test.yaml' ) ;
100+ expect ( path . relative ) . toHaveBeenCalledWith (
101+ 'output/split-test' ,
102+ 'output/split-test/paths/test.yaml'
103+ ) ;
101104 } ) ;
102105
103106 it ( 'should have correct path with webhooks' , ( ) => {
@@ -116,7 +119,10 @@ describe('split', () => {
116119 ) ;
117120
118121 expect ( openapiCore . slash ) . toHaveBeenCalledWith ( 'webhooks/test.yaml' ) ;
119- expect ( path . relative ) . toHaveBeenCalledWith ( 'test' , 'test/webhooks/test.yaml' ) ;
122+ expect ( path . relative ) . toHaveBeenCalledWith (
123+ 'output/split-test' ,
124+ 'output/split-test/webhooks/test.yaml'
125+ ) ;
120126 } ) ;
121127
122128 it ( 'should have correct path with x-webhooks' , ( ) => {
@@ -135,7 +141,10 @@ describe('split', () => {
135141 ) ;
136142
137143 expect ( openapiCore . slash ) . toHaveBeenCalledWith ( 'webhooks/test.yaml' ) ;
138- expect ( path . relative ) . toHaveBeenCalledWith ( 'test' , 'test/webhooks/test.yaml' ) ;
144+ expect ( path . relative ) . toHaveBeenCalledWith (
145+ 'output/split-test' ,
146+ 'output/split-test/webhooks/test.yaml'
147+ ) ;
139148 } ) ;
140149
141150 it ( 'should create correct folder name for code samples' , async ( ) => {
0 commit comments