File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
core/src/lib/implementation
plugin-coverage/src/lib/nx
plugin-lighthouse/src/lib/runner
testing/test-setup/src/lib Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ export async function readRcByPath(
2727 const result = await importModule ( {
2828 filepath : filePath ,
2929 tsconfig,
30- format : 'esm' ,
3130 } ) ;
3231 return { result, message : `Imported config from ${ formattedTarget } ` } ;
3332 } ,
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ const { window: jsdomWindow } = new JSDOM(html);
2626
2727// Set globals for axe-core compatibility
2828// eslint-disable-next-line functional/immutable-data
29- globalThis . window = jsdomWindow ;
29+ globalThis . window = jsdomWindow as unknown as Window & typeof globalThis ;
3030// eslint-disable-next-line functional/immutable-data
3131globalThis . document = jsdomWindow . document ;
Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ export async function getCoveragePathForVitest(
147147
148148 const vitestConfig = await importModule < VitestCoverageConfig > ( {
149149 filepath : config ,
150- format : 'esm' ,
151150 } ) ;
152151
153152 const reportsDirectory =
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ export async function getConfig(
144144 message,
145145 result : await importModule < Config > ( {
146146 filepath : configPath ,
147- format : 'esm' ,
148147 } ) ,
149148 } ;
150149 }
Original file line number Diff line number Diff line change 11import { vi } from 'vitest' ;
2+ import type { importModule } from '@code-pushup/utils' ;
23
34// Disable jiti caching in tests
45vi . mock ( '@code-pushup/utils' , async ( ) => {
5- const utils = await vi . importActual ( '@code-pushup/utils' ) ;
6+ const utils = ( await vi . importActual ( '@code-pushup/utils' ) ) as {
7+ importModule : typeof importModule ;
8+ } ;
69 return {
710 ...utils ,
811 importModule : async ( options : Parameters < typeof utils . importModule > [ 0 ] ) => {
You can’t perform that action at this time.
0 commit comments