@gyugyu/sassunit
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

sassunit

Unit testing framework for Dart Sass

Installation

npm install @gyugyu/sassunit @gyugyu/assert-sass sass

Example

@function sum($a, $b) {
  @return $a + $b;
}
@use 'functions';
@use '@gyugyu/assert-sass' as assert;

@function test-sum() {
  $ret: assert.equals(functions.sum(2, 3), 5);
  @return $ret;
}
npx sassunit

Watch mode

From v0.2.0, watch mode is added.

npx sassunit src --watch

Dependencies (3)

Dev Dependencies (12)

Package Sidebar

Install

npm i @gyugyu/sassunit

Weekly Downloads

72

Version

0.2.0

License

MIT

Unpacked Size

11.7 kB

Total Files

17

Last publish

Collaborators

  • gyugyu