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 tests #34

Merged
merged 4 commits into from
Apr 4, 2021
Merged

Fix tests #34

merged 4 commits into from
Apr 4, 2021

Conversation

s-weigand
Copy link
Contributor

When rebasing #25 I saw that the CI tests are broken.
This happened due to a change in the version of select-dom, which for some reason doesn't work nicely with ts-jest.

"select-dom": "^7.1.0",

Also for the page selector tests to not fail kinda randomly (connection timeout), I raised the max timeout limit for rendering the pages from 5s (jest default) to 30s.
That way the scheduled tests shouldn't span you due to connection timeouts that often (hopefully no false positives at all anymore).

Despite "select-dom" having types, for some reason they don't get picked up properly and after about 2h trying to figure out a better way to fix, I decided to run ts-jest with a tsconfig with '"noImplicitAny": false'.
Since especially SourceForge and BitBucket take a lot of time to render (needed for the selector tests), there will be less 'random' failing when waiting longer for the proper render.
on demand by a click in the github web GUI
@codecov-io
Copy link

Codecov Report

Merging #34 (ace064c) into master (262bc57) will not change coverage.
The diff coverage is 3.22%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #34   +/-   ##
=======================================
  Coverage   16.85%   16.85%           
=======================================
  Files          19       19           
  Lines         362      362           
  Branches       47       47           
=======================================
  Hits           61       61           
  Misses        299      299           
  Partials        2        2           
Impacted Files Coverage Δ
packages/ManifestChrome.ts 0.00% <ø> (ø)
packages/ManifestEdge.ts 0.00% <ø> (ø)
packages/common/HostData.ts 0.00% <ø> (ø)
packages/common/LocalStorage.ts 0.00% <0.00%> (ø)
packages/common/Messenger.ts 0.00% <0.00%> (ø)
packages/content/Content.ts 0.00% <0.00%> (ø)
packages/content/pages/GitHub.ts 19.29% <0.00%> (ø)
packages/content/pages/PasteBin.ts 0.00% <0.00%> (ø)
packages/content/utils/Dev.ts 15.62% <ø> (ø)
packages/content/utils/showIconsForHosting.ts 0.00% <ø> (ø)
... and 2 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 ee4a667...ace064c. Read the comment docs.

@dderevjanik
Copy link
Owner

@s-weigand Thank you very much ! :)

@dderevjanik dderevjanik merged commit 0e87e48 into dderevjanik:master Apr 4, 2021
@s-weigand s-weigand deleted the fix-tests branch April 5, 2021 11:00
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.

3 participants