Skip to content

Commit 2688343

Browse files
committed
test: fix int tests
1 parent 26d5f7b commit 2688343

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

e2e/cli-e2e/tests/collect.e2e.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { cp } from 'node:fs/promises';
22
import path from 'node:path';
33
import { afterEach, beforeAll, describe, expect, it } from 'vitest';
4-
import {
5-
type ValidatedRunnerResult,
6-
getRunnerOutputsPath,
7-
} from '@code-pushup/core';
84
import { nxTargetProject } from '@code-pushup/test-nx-utils';
95
import {
106
E2E_ENVIRONMENTS_DIR,
@@ -103,8 +99,8 @@ describe('CLI collect', () => {
10399
expect(code).toBe(0);
104100

105101
await expect(
106-
readJsonFile<ValidatedRunnerResult>(
107-
getRunnerOutputsPath(dummyPluginSlug, dummyOutputDir),
102+
readJsonFile(
103+
path.join(dummyOutputDir, dummyPluginSlug, 'runner-output.json'),
108104
),
109105
).resolves.toStrictEqual([
110106
{

packages/core/src/lib/history.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type {
2+
CacheConfigObject,
23
CoreConfig,
34
PersistConfig,
45
UploadConfig,
@@ -15,6 +16,7 @@ export type HistoryOnlyOptions = {
1516
};
1617
export type HistoryOptions = Pick<CoreConfig, 'plugins' | 'categories'> & {
1718
persist: Required<PersistConfig>;
19+
cache: CacheConfigObject;
1820
upload?: Required<UploadConfig>;
1921
} & HistoryOnlyOptions &
2022
Partial<GlobalOptions>;
@@ -40,6 +42,10 @@ export async function history(
4042
format: ['json'],
4143
filename: `${commit}-report`,
4244
},
45+
cache: {
46+
read: false,
47+
write: false,
48+
},
4349
};
4450

4551
await collectAndPersistReports(currentConfig);

0 commit comments

Comments
 (0)