Skip to content

Remove withRouter (2/2)#3009

Merged
taneliang merged 28 commits into
masterfrom
eliang/even-more-fc
Dec 7, 2020
Merged

Remove withRouter (2/2)#3009
taneliang merged 28 commits into
masterfrom
eliang/even-more-fc

Conversation

@taneliang
Copy link
Copy Markdown
Member

@taneliang taneliang commented Dec 2, 2020

Continues from #3007.

There's 1 remaining withRouter callsite in VenuesContainer, but I'll fix that in a separate PR as the venues components looks like they're due for an overhaul.

I've fixed the noob React Testing Library mistakes in this PR, but to prevent this PR from ballooning further, I didn't fix the mistakes from #3007. I'll fix them in a follow up PR and add the Testing Library ESLint plugins. (Edit: Created issue #3031 instead)

@taneliang taneliang changed the title Enzyme -> RTL Navtabs.test.tsx Remove withRouter (2/n) Dec 2, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 2, 2020

Codecov Report

Merging #3009 (ed658e8) into master (9108d66) will increase coverage by 7.76%.
The diff coverage is 85.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3009      +/-   ##
==========================================
+ Coverage   47.79%   55.56%   +7.76%     
==========================================
  Files         254      255       +1     
  Lines        5314     5311       -3     
  Branches     1220     1216       -4     
==========================================
+ Hits         2540     2951     +411     
+ Misses       2774     2360     -414     
Impacted Files Coverage Δ
website/src/actions/export.ts 11.53% <0.00%> (-0.47%) ⬇️
website/src/reducers/moduleBank.ts 94.59% <ø> (+35.13%) ⬆️
website/src/types/reducers.ts 100.00% <ø> (ø)
website/src/utils/error.ts 16.66% <ø> (-10.00%) ⬇️
website/src/views/components/LinkModuleCodes.tsx 100.00% <ø> (ø)
website/src/views/components/Tooltip/index.tsx 100.00% <ø> (+20.00%) ⬆️
...ribute/ContributeContainer/ContributeContainer.tsx 0.00% <0.00%> (ø)
...src/views/contribute/ContributeContainer/index.tsx 10.00% <ø> (ø)
.../src/views/modules/ModuleFinderContainer/index.tsx 0.00% <ø> (ø)
website/src/views/timetable/ShareTimetable.tsx 76.36% <ø> (ø)
... and 66 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9108d66...ed658e8. Read the comment docs.

@nusmods-deploy-bot
Copy link
Copy Markdown

nusmods-deploy-bot Bot commented Dec 2, 2020

Base automatically changed from eliang/more-fc to master December 3, 2020 04:01
@taneliang taneliang force-pushed the eliang/even-more-fc branch from 6444639 to 3ee467b Compare December 3, 2020 04:02
isExact?: boolean;
};

// This can also be Location, but no test case use that for now so we leave it
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

createMemoryHistory's initialEntries can only be a string[], so I think this comment is outdated.

Comment thread website/src/views/layout/Navtabs.test.tsx Outdated
@taneliang taneliang marked this pull request as ready for review December 6, 2020 05:20
@taneliang taneliang changed the title Remove withRouter (2/n) Remove withRouter (2/2) Dec 6, 2020
@taneliang taneliang requested a review from a team December 6, 2020 05:37
Copy link
Copy Markdown
Member

@li-kai li-kai left a comment

Choose a reason for hiding this comment

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

LGTM 🍎

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