Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
Lachlan McDonald edited this page May 14, 2019 · 6 revisions

Saxicon includes two sets of tests:

  • Unit tests with Jest
  • Visual tests

Configuration

Before you begin, you will need both:

  • Ruby\Dark SASS — available in your test environment as sass
  • A wrapper around libsass (like SassC) — available in your test environment as sassc

To update these paths, or to modify SASS engines are used, modify the testConfig.engines property in package.json.

Jest

To run the tests:

jest

Visual tests

To run the tests:

node visual-tests.js

Tests will be output in the tests folder, which you can preview in your choice of SVG-compliant browser.

For each test, the left image is the output of Saxicon, and the right image is a preview of the expected output. Some slight colour variation may be present, which can be ignored.