Skip to content

Commit e146f2f

Browse files
committed
fix: add OS ptah helper
1 parent 3ca2f45 commit e146f2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/core/src/lib/implementation/runner.unit.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
MINIMAL_PLUGIN_CONFIG_MOCK,
77
MINIMAL_RUNNER_CONFIG_MOCK,
88
MINIMAL_RUNNER_FUNCTION_MOCK,
9+
osAgnosticPath,
910
} from '@code-pushup/test-utils';
1011
import {
1112
type RunnerResult,
@@ -17,9 +18,9 @@ import {
1718

1819
describe('getAuditOutputsPath', () => {
1920
it('should read runner results from a file', async () => {
20-
expect(getAuditOutputsPath('plugin-with-cache', 'output')).toBe(
21-
'output/plugin-with-cache/audit-outputs.json',
22-
);
21+
expect(
22+
osAgnosticPath(getAuditOutputsPath('plugin-with-cache', 'output')),
23+
).toBe(osAgnosticPath('output/plugin-with-cache/audit-outputs.json'));
2324
});
2425
});
2526

0 commit comments

Comments
 (0)