Skip to content

test: remove stdout and std from test by mocking logger module#143

Closed
marcalexiei wants to merge 3 commits intostats-organization:npm-packagefrom
marcalexiei:test-logs
Closed

test: remove stdout and std from test by mocking logger module#143
marcalexiei wants to merge 3 commits intostats-organization:npm-packagefrom
marcalexiei:test-logs

Conversation

@marcalexiei
Copy link
Copy Markdown

@marcalexiei marcalexiei commented Apr 14, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@marcalexiei marcalexiei changed the title Test logs test: remove stdout and std from test by mocking logger module Apr 14, 2026
@marcalexiei marcalexiei changed the base branch from master to npm-package April 17, 2026 17:14
@marcalexiei marcalexiei marked this pull request as ready for review April 17, 2026 17:15
@marcalexiei marcalexiei requested a review from martin-mfg April 17, 2026 17:15
@martin-mfg martin-mfg deleted the branch stats-organization:npm-package April 18, 2026 08:37
@martin-mfg martin-mfg closed this Apr 18, 2026
@martin-mfg
Copy link
Copy Markdown
Member

GitHub auto-closed this PR because the target branch doesn't exist anymore. Anyway I'll review it next.

});

afterEach(() => {
logSpy.mockClear();
Copy link
Copy Markdown
Member

@martin-mfg martin-mfg Apr 18, 2026

Choose a reason for hiding this comment

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

Currently logSpy is only cleared, but there are no expect calls for it yet.

Apart from this everything looks good to me. Thanks for your nice work, as always! :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done via #161

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.

test - remove noise from logs

2 participants