Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(monosize): resolve default argument resolution bug within collectLocalReport #69

Merged
merged 2 commits into from
May 17, 2024

Conversation

Hotell
Copy link
Contributor

@Hotell Hotell commented May 17, 2024

@Hotell Hotell changed the title Fix/compare reports regression fix(monosize): resolve default argument resolution bug within collectLocalReport May 17, 2024
@@ -65,7 +65,7 @@ describe('collectLocalReport', () => {
await fs.promises.writeFile(reportAPath, JSON.stringify(reportA));
await fs.promises.writeFile(reportBPath, JSON.stringify(reportB));

expect(await collectLocalReport({ root: rootDir })).toMatchInlineSnapshot(`
expect(await collectLocalReport({ root: rootDir, reportFilesGlob: undefined })).toMatchInlineSnapshot(`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added explicit undefined to properly test if that args is not specified from CLI

@Hotell Hotell marked this pull request as ready for review May 17, 2024 08:35
@Hotell Hotell requested review from layershifter and a team as code owners May 17, 2024 08:35
@Hotell Hotell merged commit 957bc0b into microsoft:main May 17, 2024
4 checks passed
@Hotell Hotell deleted the fix/compare-reports-regression branch May 17, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants