File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 "typescript-eslint" : " 8.58.1"
3636 },
3737 "scripts" : {
38- "build" : " tsdown src/plugin.ts --dts -- deps.neverBundle graphql" ,
38+ "build" : " tsdown src/plugin.ts --deps.neverBundle graphql" ,
3939 "docs:build" : " bun run build && bun --filter docs build" ,
4040 "docs:start" : " bun --filter docs start" ,
4141 "format" : " prettier --write ." ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { buildSchema } from "graphql";
22import { GraphQLKotlinCodegenConfig , plugin } from "../src/plugin" ;
33import { describe , expect , it } from "bun:test" ;
44import { Types } from "@graphql-codegen/plugin-helpers" ;
5- import * as glob from "glob" ;
5+ import { globSync } from "glob" ;
66
77function buildUnitTest ( {
88 testName,
@@ -33,14 +33,14 @@ function buildUnitTest({
3333 } ) ;
3434}
3535
36- const testDirectories = glob . sync ( "./test/unit/*" ) ;
36+ const testDirectories = globSync ( "./test/unit/*" ) ;
3737const testCases = await Promise . all (
3838 testDirectories . map ( async ( testPath ) => {
3939 const testName = testPath . split ( "/" ) . findLast ( Boolean ) ;
4040 if ( ! testName ) throw new Error ( "Test name not found" ) ;
4141 const absolutePath = `${ process . cwd ( ) } /${ testPath } ` ;
4242 const configExists =
43- glob . sync ( `${ absolutePath } /codegen.config.ts` ) . length > 0 ;
43+ globSync ( `${ absolutePath } /codegen.config.ts` ) . length > 0 ;
4444 if ( ! configExists ) {
4545 return {
4646 testName,
You can’t perform that action at this time.
0 commit comments