Unit testing framework for Dart Sass
npm install @gyugyu/sassunit @gyugyu/assert-sass sass
@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
From v0.2.0, watch mode is added.
npx sassunit src --watch