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

Report the number of evaluated tests alongside with diagnostics #127

Closed
wants to merge 45 commits into from
Closed

Report the number of evaluated tests alongside with diagnostics #127

wants to merge 45 commits into from

Conversation

mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Oct 13, 2021

This is rebased and cleaned up of stale #75.

My motivation is simply to make it possible to use tsd with jest.

PS I couldn’t find a way to work directly on #75. New PR seemed to be the solution. If this is somehow non-nonethical or a bad practise, I am fine to close and to proceed in some other way.

smartclash and others added 30 commits June 24, 2020 19:28
@@ -94,6 +109,7 @@ export const getDiagnostics = (context: Context): Diagnostic[] => {
.concat(program.getSyntacticDiagnostics());

const assertions = extractAssertions(program);
const testCount = countAssertions(assertions);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be named assertionCount as well.

@mrazauskas
Copy link
Contributor Author

Not good idea. It reports count of assertions, not count of tests (there are no tests in tsd).

@mrazauskas mrazauskas closed this Oct 31, 2021
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.

None yet

3 participants