@@ -2,7 +2,6 @@ import * as devKit from '@nx/devkit';
22import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing' ;
33import * as path from 'node:path' ;
44import stripAnsi from 'strip-ansi' ;
5- import { afterEach , describe , expect , it } from 'vitest' ;
65import { generateZod2MdConfig } from './zod2md-config.js' ;
76
87describe ( 'generateZod2MdConfig options' , ( ) => {
@@ -35,10 +34,10 @@ describe('generateZod2MdConfig options', () => {
3534 expect . any ( String ) ,
3635 expect . any ( String ) ,
3736 expect . objectContaining ( {
38- entry : 'test-app/src/main.ts' ,
37+ entry : expect . pathToMatch ( 'test-app/src/main.ts' ) ,
3938 format : 'esm' ,
4039 title : 'App Types' ,
41- output : 'test-app/docs/main.md' ,
40+ output : expect . pathToMatch ( 'test-app/docs/main.md' ) ,
4241 } ) ,
4342 ) ;
4443 } ) ;
@@ -95,14 +94,14 @@ describe('generateZod2MdConfig options', () => {
9594 expect . anything ( ) ,
9695 expect . any ( String ) ,
9796 expect . any ( String ) ,
98- {
99- entry : 'test-app/src/index.ts' ,
97+ expect . objectContaining ( {
98+ entry : expect . pathToMatch ( 'test-app/src/index.ts' ) ,
10099 format : 'esm' ,
101100 title : 'test-app reference' ,
102- output : 'test-app/docs/test-app-reference.md' ,
101+ output : expect . pathToMatch ( 'test-app/docs/test-app-reference.md' ) ,
103102 transformName : undefined ,
104- tsconfig : 'test-app/tsconfig.lib.json' ,
105- } ,
103+ tsconfig : expect . pathToMatch ( 'test-app/tsconfig.lib.json' ) ,
104+ } ) ,
106105 ) ;
107106 } ) ;
108107} ) ;
0 commit comments