Skip to content

Commit b18b43b

Browse files
authored
Merge pull request #3966 from uswds/dw-color-functions
Revise color functions and add Sass testing
2 parents 1fe52dd + 3cae33a commit b18b43b

22 files changed

+1532
-580
lines changed

package-lock.json

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"release": "gulp release",
2727
"spec": "npm run mocha -- 'spec/**/*.spec.js'",
2828
"start": "npm run build && fractal start --sync & npm run watch",
29-
"test": "snyk test && gulp eslint && gulp typecheck && gulp stylelint && fractal build && gulp test && gulp regression",
29+
"test": "snyk test && gulp eslint && gulp typecheck && gulp stylelint && fractal build && gulp test && gulp regression && npm run test:sass",
3030
"test:ci": "gulp eslint && gulp typecheck && gulp stylelint && fractal build && gulp test && gulp regression",
31+
"test:sass": "mocha spec/unit/sass/sass-spec.js",
3132
"test:unit": "gulp test",
3233
"test:visual": "node ./spec/visual-regression-tester.js test",
3334
"test:visual:update": " node ./spec/visual-regression-tester.js test --updateGolden",
@@ -122,6 +123,7 @@
122123
"prettier": "^2.2.0",
123124
"resemblejs": "^3.2.5",
124125
"sass": "^1.29.0",
126+
"sass-true": "^6.0.1",
125127
"sinon": "^9.2.2",
126128
"snyk": "^1.439.1",
127129
"stylelint": "^13.8.0",

spec/unit/sass/sass-spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const path = require("path");
2+
const sassTrue = require("sass-true");
3+
4+
const SASS = path.join(__dirname, "tests.scss");
5+
6+
sassTrue.runSass({ file: SASS }, { describe, it });

0 commit comments

Comments
 (0)