Skip to content

Commit a8c252e

Browse files
committed
wip
1 parent a87fc03 commit a8c252e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { 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';
34
import { afterAll, beforeAll, expect } from 'vitest';
45
import { type Report, reportSchema } from '@code-pushup/models';
56
import { nxTargetProject } from '@code-pushup/test-nx-utils';
@@ -15,16 +16,11 @@ import { executeProcess, readJsonFile } from '@code-pushup/utils';
1516
describe.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

Comments
 (0)