File tree Expand file tree Collapse file tree
ts-plugin/e2e-test/test-util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import dedent from 'dedent';
55import { expect , test } from 'vitest' ;
66import { createIFF } from '../src/test/fixture.js' ;
77
8- const binPath = join ( __dirname , '../bin/cmk.mjs' ) ;
9- const tscPath = join ( __dirname , '../../../node_modules/typescript/bin/tsc' ) ;
8+ const binPath = join ( import . meta . dirname , '../bin/cmk.mjs' ) ;
9+ const tscPath = join ( import . meta . dirname , '../../../node_modules/typescript/bin/tsc' ) ;
1010
1111test ( 'generates .d.ts' , async ( ) => {
1212 const iff = await createIFF ( {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function launchTsserver(): Tsserver {
4242 '--globalPlugins' ,
4343 '@css-modules-kit/ts-plugin' ,
4444 '--pluginProbeLocations' ,
45- __dirname ,
45+ import . meta . dirname ,
4646 ] ,
4747 [ ] ,
4848 ) ;
You can’t perform that action at this time.
0 commit comments