Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TestOptions

Specifies how sensitive image comparison should be

Hierarchy

  • TestOptions

Index

Properties

Optional maxMismatchedPixels

maxMismatchedPixels: undefined | number

Defines how many pixels can mismatch. If more than maxMismatchedPixels test fails.

Optional threshold

threshold: undefined | number

Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0 by default. 0 - accepts perfect match, 1 - accepts many differences Used with pixelmatch library: https://github.com/mapbox/pixelmatch

Generated using TypeDoc