Skip to content

Commit c755a5c

Browse files
authored
fix: Add missing output path (#63)
Add in outputPath to the outputted stats file, as this was missing.
1 parent d28a2e4 commit c755a5c

File tree

22 files changed

+70
-40
lines changed

22 files changed

+70
-40
lines changed

.changeset/tasty-adults-design.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@codecov/bundler-plugin-core": patch
3+
"@codecov/webpack-plugin": patch
4+
"@codecov/rollup-plugin": patch
5+
"@codecov/vite-plugin": patch
6+
---
7+
8+
Add missing outputPath to output stats file

integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-v3-plugin.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ exports[`Generating rollup stats version 3 matches the snapshot 1`] = `
6060
"size": 168,
6161
},
6262
],
63+
"outputPath": StringContaining "/distV3",
6364
"plugin": {
6465
"name": "codecov-rollup-bundle-analysis-plugin",
6566
"version": "1.0.0",

integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-v4-plugin.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ exports[`Generating rollup stats version 4 matches the snapshot 1`] = `
6060
"size": 168,
6161
},
6262
],
63+
"outputPath": StringContaining "/distV4",
6364
"plugin": {
6465
"name": "codecov-rollup-bundle-analysis-plugin",
6566
"version": "1.0.0",

integration-tests/fixtures/generate-bundle-stats/rollup/rollup-v3-plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ describe("Generating rollup stats", () => {
5454
expect(stats).toMatchSnapshot({
5555
builtAt: expect.any(Number),
5656
duration: expect.any(Number),
57+
outputPath: expect.stringContaining("/distV3"),
5758
});
5859
});
5960
});

integration-tests/fixtures/generate-bundle-stats/rollup/rollup-v4-plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe("Generating rollup stats", () => {
6262
expect(stats).toMatchSnapshot({
6363
builtAt: expect.any(Number),
6464
duration: expect.any(Number),
65+
outputPath: expect.stringContaining("/distV4"),
6566
});
6667
});
6768
});

integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-v4-plugin.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ exports[`Generating vite stats version 4 matches the snapshot 1`] = `
8181
"size": 0,
8282
},
8383
],
84+
"outputPath": StringContaining "/distV4",
8485
"plugin": {
8586
"name": "codecov-vite-bundle-analysis-plugin",
8687
"version": "1.0.0",

integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-v5-plugin.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ exports[`Generating vite stats version 5 matches the snapshot 1`] = `
8181
"size": 0,
8282
},
8383
],
84+
"outputPath": StringContaining "/distV5",
8485
"plugin": {
8586
"name": "codecov-vite-bundle-analysis-plugin",
8687
"version": "1.0.0",

integration-tests/fixtures/generate-bundle-stats/vite/vite-v4-plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe("Generating vite stats", () => {
5353
expect(stats).toMatchSnapshot({
5454
builtAt: expect.any(Number),
5555
duration: expect.any(Number),
56+
outputPath: expect.stringContaining("/distV4"),
5657
});
5758
});
5859
});

integration-tests/fixtures/generate-bundle-stats/vite/vite-v5-plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe("Generating vite stats", () => {
5353
expect(stats).toMatchSnapshot({
5454
builtAt: expect.any(Number),
5555
duration: expect.any(Number),
56+
outputPath: expect.stringContaining("/distV5"),
5657
});
5758
});
5859
});

integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-v5-plugin.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ exports[`Generating webpack stats version 5 matches the snapshot 1`] = `
6565
"size": 123,
6666
},
6767
],
68+
"outputPath": StringContaining "/dist",
6869
"plugin": {
6970
"name": "codecov-webpack-bundle-analysis-plugin",
7071
"version": "1.0.0",

0 commit comments

Comments
 (0)