Skip to content

Files

Latest commit

Apr 22, 2020
dccf40a · Apr 22, 2020

History

History
This branch is 1601 commits behind wix/stylable:master.

core-test-kit

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2020
Mar 12, 2019
Jul 24, 2019
Apr 22, 2020

@stylable/core-test-kit

npm version

@stylable/core-test-kit is a collection of utilities aimed at making testing Stylable core behavior and functionality easier.

What's in this test-kit?

Matchers

An assortment of Chai matchers used by Stylable.

  • flat-match - flattens and matches passed arguments
  • results - test Stylable transpiled style rules output

Diagnostics tooling

A collection of tools aimed at testing Stylable diagnostics messages (warnings and errors).

Testing infrastructure

Used for easily setting up Stylable instances (processor/transformer) and its infrastructure.

Match rules

Exposes two utility functions (matchRuleAndDeclaration and matchAllRulesAndDeclarations) used for testing Stylable generated AST representing CSS rules and declarations.

License

Copyright (c) 2019 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.