@@ -39,7 +39,7 @@ describe.each(testVersions)(
3939 const { code, schemas} = await getActual ( "components/schemas/SimpleObject" )
4040
4141 expect ( code ) . toMatchInlineSnapshot ( `
42- "import { s_SimpleObject } from "./unit-test.schemas"
42+ "import { s_SimpleObject } from "./unit-test.schemas.ts "
4343
4444 const x = s_SimpleObject"
4545 ` )
@@ -65,7 +65,7 @@ describe.each(testVersions)(
6565 )
6666
6767 expect ( code ) . toMatchInlineSnapshot ( `
68- "import { s_ObjectWithComplexProperties } from "./unit-test.schemas"
68+ "import { s_ObjectWithComplexProperties } from "./unit-test.schemas.ts "
6969
7070 const x = s_ObjectWithComplexProperties"
7171 ` )
@@ -105,7 +105,7 @@ describe.each(testVersions)(
105105 const { code, schemas} = await getActual ( "components/schemas/OneOf" )
106106
107107 expect ( code ) . toMatchInlineSnapshot ( `
108- "import { s_OneOf } from "./unit-test.schemas"
108+ "import { s_OneOf } from "./unit-test.schemas.ts "
109109
110110 const x = s_OneOf"
111111 ` )
@@ -125,7 +125,7 @@ describe.each(testVersions)(
125125 const { code, schemas} = await getActual ( "components/schemas/AnyOf" )
126126
127127 expect ( code ) . toMatchInlineSnapshot ( `
128- "import { s_AnyOf } from "./unit-test.schemas"
128+ "import { s_AnyOf } from "./unit-test.schemas.ts "
129129
130130 const x = s_AnyOf"
131131 ` )
@@ -141,7 +141,7 @@ describe.each(testVersions)(
141141 const { code, schemas} = await getActual ( "components/schemas/AllOf" )
142142
143143 expect ( code ) . toMatchInlineSnapshot ( `
144- "import { s_AllOf } from "./unit-test.schemas"
144+ "import { s_AllOf } from "./unit-test.schemas.ts "
145145
146146 const x = s_AllOf"
147147 ` )
@@ -162,14 +162,14 @@ describe.each(testVersions)(
162162 const { code, schemas} = await getActual ( "components/schemas/Recursive" )
163163
164164 expect ( code ) . toMatchInlineSnapshot ( `
165- "import { s_Recursive } from "./unit-test.schemas"
165+ "import { s_Recursive } from "./unit-test.schemas.ts "
166166
167167 const x = z.lazy(() => s_Recursive)"
168168 ` )
169169
170170 expect ( schemas ) . toMatchInlineSnapshot ( `
171171 "import { z } from "zod/v3"
172- import type { t_Recursive } from "./unit-test.types"
172+ import type { t_Recursive } from "./unit-test.types.ts "
173173
174174 export const s_Recursive: z.ZodType<t_Recursive, z.ZodTypeDef, unknown> =
175175 z.object({ child: z.lazy(() => s_Recursive.optional()) })"
@@ -180,7 +180,7 @@ describe.each(testVersions)(
180180 const { code, schemas} = await getActual ( "components/schemas/Ordering" )
181181
182182 expect ( code ) . toMatchInlineSnapshot ( `
183- "import { s_Ordering } from "./unit-test.schemas"
183+ "import { s_Ordering } from "./unit-test.schemas.ts "
184184
185185 const x = s_Ordering"
186186 ` )
@@ -206,7 +206,7 @@ describe.each(testVersions)(
206206 const { code, schemas} = await getActual ( "components/schemas/Enums" )
207207
208208 expect ( code ) . toMatchInlineSnapshot ( `
209- "import { s_Enums } from "./unit-test.schemas"
209+ "import { s_Enums } from "./unit-test.schemas.ts "
210210
211211 const x = s_Enums"
212212 ` )
@@ -231,7 +231,7 @@ describe.each(testVersions)(
231231 )
232232
233233 expect ( code ) . toMatchInlineSnapshot ( `
234- "import { s_AdditionalPropertiesBool } from "./unit-test.schemas"
234+ "import { s_AdditionalPropertiesBool } from "./unit-test.schemas.ts "
235235
236236 const x = s_AdditionalPropertiesBool"
237237 ` )
@@ -249,7 +249,7 @@ describe.each(testVersions)(
249249 )
250250
251251 expect ( code ) . toMatchInlineSnapshot ( `
252- "import { s_AdditionalPropertiesUnknownEmptySchema } from "./unit-test.schemas"
252+ "import { s_AdditionalPropertiesUnknownEmptySchema } from "./unit-test.schemas.ts "
253253
254254 const x = s_AdditionalPropertiesUnknownEmptySchema"
255255 ` )
@@ -267,7 +267,7 @@ describe.each(testVersions)(
267267 )
268268
269269 expect ( code ) . toMatchInlineSnapshot ( `
270- "import { s_AdditionalPropertiesUnknownEmptyObjectSchema } from "./unit-test.schemas"
270+ "import { s_AdditionalPropertiesUnknownEmptyObjectSchema } from "./unit-test.schemas.ts "
271271
272272 const x = s_AdditionalPropertiesUnknownEmptyObjectSchema"
273273 ` )
@@ -287,7 +287,7 @@ describe.each(testVersions)(
287287 )
288288
289289 expect ( code ) . toMatchInlineSnapshot ( `
290- "import { s_AdditionalPropertiesSchema } from "./unit-test.schemas"
290+ "import { s_AdditionalPropertiesSchema } from "./unit-test.schemas.ts "
291291
292292 const x = s_AdditionalPropertiesSchema"
293293 ` )
@@ -309,7 +309,7 @@ describe.each(testVersions)(
309309 )
310310
311311 expect ( code ) . toMatchInlineSnapshot ( `
312- "import { s_AdditionalPropertiesMixed } from "./unit-test.schemas"
312+ "import { s_AdditionalPropertiesMixed } from "./unit-test.schemas.ts "
313313
314314 const x = s_AdditionalPropertiesMixed"
315315 ` )
@@ -825,7 +825,8 @@ describe.each(testVersions)(
825825 }
826826
827827 function inlineStaticSchemas ( code : string ) {
828- const importRegex = / i m p o r t { ( [ ^ } ] + ) } f r o m " \. \/ u n i t - t e s t \. s c h e m a s " \n /
828+ const importRegex =
829+ / i m p o r t { ( [ ^ } ] + ) } f r o m " \. \/ u n i t - t e s t \. s c h e m a s .t s " \n /
829830
830831 const match = code . match ( importRegex ) ?. [ 1 ]
831832
@@ -854,7 +855,7 @@ describe.each(testVersions)(
854855 const { code} = await getActualFromModel ( { ...base } )
855856
856857 expect ( code ) . toMatchInlineSnapshot ( `
857- "import { PermissiveBoolean } from "./unit-test.schemas"
858+ "import { PermissiveBoolean } from "./unit-test.schemas.ts "
858859
859860 const x = PermissiveBoolean"
860861 ` )
0 commit comments