Skip to content

Commit 519137e

Browse files
committed
refactor: wip
1 parent 721b220 commit 519137e

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`PLUGIN collect report with bundle-stats-plugin NPM package > should run plugin over CLI and creates report.json 1`] = `
4+
{
5+
"packageName": "@code-pushup/core",
6+
"plugins": [
7+
{
8+
"audits": [
9+
{
10+
"slug": "bundle-size",
11+
"title": "Bundle Size",
12+
},
13+
],
14+
"description": "Official Code PushUp Bundle Stats plugin.",
15+
"docsUrl": "https://npm.im/@code-pushup/bundle-stats-plugin",
16+
"icon": "folder-rules",
17+
"packageName": "@code-pushup/bundle-stats-plugin",
18+
"slug": "bundle-stats",
19+
"title": "Bundle Stats",
20+
},
21+
],
22+
}
23+
`;

e2e/plugin-bundle-stats-e2e/tests/collect.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('PLUGIN collect report with bundle-stats-plugin NPM package', () => {
4040
});
4141

4242
expect(code).toBe(0);
43-
expect(stdout).toContain('bundle-stats audits');
43+
expect(stdout).toContain('Bundle Stats audits');
4444

4545
const report = await readJsonFile(
4646
path.join(testFileDir, '.code-pushup', 'report.json'),

0 commit comments

Comments
 (0)