File tree Expand file tree Collapse file tree
packages/codemod-rewrite-module-specifiers-to-full-paths Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 "@patricktree/runtime-extensions-node" : " workspace:*" ,
6262 "@types/jscodeshift" : " ^0.11.11" ,
6363 "@types/node" : " ^20" ,
64- "@vitest/coverage-v8" : " ^2 .0.5 " ,
64+ "@vitest/coverage-v8" : " ^4 .0.16 " ,
6565 "ts-expose-internals" : " ^5.5.4" ,
66- "vite-tsconfig-paths" : " ^5.0.1" ,
67- "vitest" : " ^2.0.5"
66+ "vitest" : " ^4.0.16"
6867 },
6968 "publishConfig" : {
7069 "access" : " public"
Original file line number Diff line number Diff line change 11import fs from 'node:fs' ;
22import path from 'node:path' ;
3+ import url from 'node:url' ;
34import { test , expect } from 'vitest' ;
45
56import { loadTypeScriptProgram } from '#pkg/load-typescript-program.js' ;
67import { rewriteModuleSpecifiersOfTypeScriptProject } from '#pkg/transform/index.js' ;
78
9+ const __dirname = url . fileURLToPath ( new URL ( '.' , import . meta. url ) ) ;
10+
811const PATH_TO_CODEMOD_INPUTS = path . join ( __dirname , 'codemod-inputs' ) ;
912const PATH_TO_CODEMOD_OUTPUTS = path . join ( __dirname , 'codemod-outputs' ) ;
1013
Original file line number Diff line number Diff line change 1- import tsconfigPaths from 'vite-tsconfig-paths' ;
21import { defineConfig , configDefaults } from 'vitest/config' ;
32
43const config = defineConfig ( {
5- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any -- works correctly
6- plugins : [ tsconfigPaths ( ) as any ] ,
74 test : {
85 coverage : {
96 provider : 'v8' ,
10- all : true ,
117 reporter : [ 'lcovonly' ] ,
128 enabled : true ,
139 exclude : configDefaults . coverage . exclude ?? [ ] ,
You can’t perform that action at this time.
0 commit comments