@code-pushup/coverage-plugin 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@code-pushup/coverage-plugin",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "dependencies": {
5
- "@code-pushup/models": "0.45.0",
6
- "@code-pushup/utils": "0.45.0",
5
+ "@code-pushup/models": "0.45.1",
6
+ "@code-pushup/utils": "0.45.1",
7
7
  "parse-lcov": "^1.0.4",
8
8
  "chalk": "^5.3.0",
9
9
  "zod": "^3.22.4"
@@ -17,4 +17,9 @@ export type JestCoverageConfig = {
17
17
  coverageDirectory?: string;
18
18
  coverageReporters?: string[];
19
19
  };
20
- export declare function getCoveragePathForTarget(target: string, targetConfig: TargetConfiguration, projectName: string): Promise<string>;
20
+ export declare function getCoveragePathsForTarget(targetConfig: TargetConfiguration, pathToRoot: string, targetContext: string): Promise<CoverageResult>;
21
+ export declare function getCoveragePathForVitest(pathToConfig: string, pathToRoot: string, context: string): Promise<{
22
+ pathToProject: string;
23
+ resultsPath: string;
24
+ }>;
25
+ export declare function getCoveragePathForJest(pathToConfig: string, pathToRoot: string, context: string): Promise<string>;
@@ -1,3 +1,4 @@
1
+ import type { LCOVRecord } from 'parse-lcov';
1
2
  import { AuditOutputs } from '@code-pushup/models';
2
3
  import { CoverageResult, CoverageType } from '../../config';
3
4
  /**
@@ -7,3 +8,9 @@ import { CoverageResult, CoverageType } from '../../config';
7
8
  * @returns Audit outputs with complete coverage data.
8
9
  */
9
10
  export declare function lcovResultsToAuditOutputs(results: CoverageResult[], coverageTypes: CoverageType[]): Promise<AuditOutputs>;
11
+ /**
12
+ *
13
+ * @param results Paths to LCOV results
14
+ * @returns Array of parsed LCOVRecords.
15
+ */
16
+ export declare function parseLcovFiles(results: CoverageResult[]): Promise<LCOVRecord[]>;