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

chore: added an assortment of unit tests #205

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

JoshuaKGoldberg
Copy link
Owner

@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #205 (c8d5537) into main (4ac4813) will increase coverage by 26.05%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main     #205       +/-   ##
===========================================
+ Coverage   20.78%   46.84%   +26.05%     
===========================================
  Files          20       20               
  Lines         457      459        +2     
  Branches      179      179               
===========================================
+ Hits           95      215      +120     
+ Misses        338      216      -122     
- Partials       24       28        +4     
Flag Coverage Δ
4.2.4 44.22% <100.00%> (+23.65%) ⬆️
4.3.5 46.18% <100.00%> (+25.61%) ⬆️
4.4.4 46.18% <100.00%> (+25.61%) ⬆️
latest 46.40% <100.00%> (+26.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/nodes/typeGuards/compound.ts 81.81% <ø> (+40.90%) ⬆️
src/test/utils.ts 88.23% <100.00%> (+8.23%) ⬆️

... and 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JoshuaKGoldberg JoshuaKGoldberg force-pushed the assorted-tests branch 7 times, most recently from 5553cfd to 352ba21 Compare April 27, 2023 02:51
expect(callback).not.toHaveBeenCalled();
});

if (isTsVersionAtLeast(4, 3)) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

This fails in TS 4.2: https://github.com/JoshuaKGoldberg/ts-api-utils/actions/runs/4815452608/jobs/8574152647?pr=205

...which makes me motivated to drop support for TS 4.2. #206

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm all for using newer versions

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review April 27, 2023 02:56
@JoshuaKGoldberg JoshuaKGoldberg merged commit e11775e into main Jun 15, 2023
22 of 23 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the assorted-tests branch June 15, 2023 14:01
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

2 participants