11import { cp } from 'node:fs/promises' ;
2- import path , { join } from 'node:path' ;
2+ // eslint-disable-next-line unicorn/import-style
3+ import { join } from 'node:path' ;
34import { afterAll , beforeAll , expect } from 'vitest' ;
45import { type Report , reportSchema } from '@code-pushup/models' ;
56import { nxTargetProject } from '@code-pushup/test-nx-utils' ;
@@ -15,16 +16,11 @@ import { executeProcess, readJsonFile } from '@code-pushup/utils';
1516describe . todo (
1617 'PLUGIN collect report with typescript-plugin NPM package' ,
1718 ( ) => {
18- const envRoot = path . join ( E2E_ENVIRONMENTS_DIR , nxTargetProject ( ) ) ;
19- const testFileDir = path . join ( envRoot , TEST_OUTPUT_DIR , 'collect' ) ;
20- const defaultSetupDir = path . join ( testFileDir , 'default-setup' ) ;
19+ const envRoot = join ( E2E_ENVIRONMENTS_DIR , nxTargetProject ( ) ) ;
20+ const testFileDir = join ( envRoot , TEST_OUTPUT_DIR , 'collect' ) ;
21+ const defaultSetupDir = join ( testFileDir , 'default-setup' ) ;
2122
22- const fixturesDir = path . join (
23- 'e2e' ,
24- nxTargetProject ( ) ,
25- 'mocks' ,
26- 'fixtures' ,
27- ) ;
23+ const fixturesDir = join ( 'e2e' , nxTargetProject ( ) , 'mocks' , 'fixtures' ) ;
2824
2925 beforeAll ( async ( ) => {
3026 await cp ( fixturesDir , testFileDir , { recursive : true } ) ;
@@ -53,7 +49,7 @@ describe.todo(
5349 expect ( cleanStdout ) . toContain ( '● Largest Contentful Paint' ) ;
5450
5551 const report = await readJsonFile (
56- path . join ( defaultSetupDir , '.code-pushup' , 'report.json' ) ,
52+ join ( defaultSetupDir , '.code-pushup' , 'report.json' ) ,
5753 ) ;
5854 expect ( ( ) => reportSchema . parse ( report ) ) . not . toThrow ( ) ;
5955 expect (
0 commit comments