Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

test: remove console spy in tests #359

Merged
merged 1 commit into from
Oct 12, 2018
Merged

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Oct 12, 2018

This check was intended to prevent improper usage of components in tests. React propTypes throws warnings when props are used incorrectly at runtime. We wanted to catch those and prevent our tests from improper usage.

The outcome is that actual console errors are improperly reported by jest since they are caught afterAll. For now, we'd rather see the actual console messages. We can consider better ways to catch propType issues later.

@codecov
Copy link

codecov bot commented Oct 12, 2018

Codecov Report

Merging #359 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #359   +/-   ##
=======================================
  Coverage   89.75%   89.75%           
=======================================
  Files          64       64           
  Lines        1259     1259           
  Branches      182      159   -23     
=======================================
  Hits         1130     1130           
  Misses        126      126           
  Partials        3        3

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 6a1737f...a91ecec. Read the comment docs.

@levithomason levithomason merged commit a7b3554 into master Oct 12, 2018
@levithomason levithomason deleted the test/remove-console-spy branch October 12, 2018 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants