question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Components failing tests when mismatch percent is near zero.

See original GitHub issue

Our mismatchThreshold is set as follows: "misMatchThreshold": 5, however when the tests run certain tests fail and say "isSameDimensions": false,.

Here’s an example of some screenshots where the tests should pass but don’t seem to.

prod_test_hillarys_styleguide_30_introbanner_2_desktop

prod_test_hillarys_styleguide_30_introbanner_2_desktop 1

Here’s the output result from the report:

Report: {
  "isSameDimensions": false,
  "dimensionDifference": {
    "width": 0,
    "height": -1
  },
  "misMatchPercentage": "0.48"
}
Threshold: 1

This happens on around 8-10 tests, intermittently. Are we missing something, or is there a way to turn off the isSameDimensions property? Is this expected?

Thanks in advance for your advice.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
code-mattclaffeycommented, Oct 13, 2016

Awesome! Please update the issue when you have made the PR.

Thank you 😃

1reaction
Primajincommented, Oct 13, 2016

I’ll try to PR my stuff from #306 soon, then you can at least see in the output that it fails because of different dimensions and not because of missmatch errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snapshots on Apple Silicon devices #424 - GitHub
It seems that Apple Silicon machines generate snapshots that are slightly different from the ones generated on x86 machines.
Read more >
Jest finds tests but doesn't collect coverage - Stack Overflow
Jest is being able to find all the tests but it fails to collect coverage: PASS src/components/Home/Home.test.tsx PASS src/components ...
Read more >
The Model Performance Mismatch Problem (and what to do ...
The procedure when evaluating machine learning models is to fit and evaluate them on training data, then verify that the model has good...
Read more >
Machine Learning: Target Feature Label Imbalance Problems ...
The goal of this post is to teach python programmers why they must have balanced data for model training and how to balance...
Read more >
V/Q Mismatch: Causes, Treatment Options, and More
This occurs when there's adequate blood flow or perfusion, but not enough ventilation. A shunt can be: absolute, with zero ventilation; relative, with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found