Skip to content

v10.0.0

Choose a tag to compare

@jgerigmeyer jgerigmeyer released this 18 Nov 20:14
· 77 commits to main since this release
7c8cdd4

What's Changed

  • BREAKING: Remove the $inspect option from assertions, since Sass has improved comparisons and changed inspection. #332
  • FEATURE: Multiple contains() and contains-string() expectations can be used in a single assertion. #333
  • FEATURE: Do not fail on non-standard at-rules (switch to postcss for css parsing). #314
  • INTERNAL: Update dependencies

Migration:
It seems that most tests can be updated by simply removing the $inspect argument entirely, with no other changes. In some cases, you may still need one of the following:

  • Numeric tests with long decimals should use math.round() to explicitly compare values at the desired level of precision, rather than relying on the unreliable precision of the meta.inspect() function.
  • Tests that rely on map output might throw an error since 'maps' are not a defined CSS syntax. In this case you can use meta.inspect() to compare the string representations of maps.

Full Changelog: v9.0.0...v10.0.0