]> git.ipfire.org Git - thirdparty/bootstrap.git/commit - package-lock.json
SCSS testing of the utilities API (#36029)
authorRomaric Pascal <hello@romaricpascal.is>
Sat, 24 Dec 2022 22:29:20 +0000 (23:29 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Dec 2022 22:29:20 +0000 (14:29 -0800)
commit33ccbc23e383d9b5a9c53379791892cc73d72f21
tree9b2b845bb619318bea76270c829e606c963d3295
parentcf9454caa00872899215603e5e036d9a824b1b11
SCSS testing of the utilities API (#36029)

* Set up CSS testing using sass-true and mocha

Use mocha to handle the heavy lifting of finding tests and running them.
Mocha is made to look directly for SCSS files which are compiled
thanks to Node's require.extensions mechanism.

* Add CSS tests to workflow

* Add tests for the generate-utility mixin

* Add tests for utilities generation

* Fix linting issues

* Fix test contents

Don't know why the whole utilities.test.scss ended up copied in the api.test.scss

* Remove unnecessary entry in package.json

* Move to Jasmine for running the tests

* Move running of CSS tests before CSS build

* Update linting set up

Add exceptions for test files in stylelint

* Remove irrelevant option for sass-true

* Fix linting issues after rebase

* Add color mode tests

* Fix linter

Co-authored-by: Mark Otto <markdotto@gmail.com>
.github/workflows/css.yml
.stylelintrc
package-lock.json
package.json
scss/mixins/_utilities.scss
scss/tests/jasmine.js [new file with mode: 0644]
scss/tests/mixins/_color-modes.test.scss [new file with mode: 0644]
scss/tests/mixins/_utilities.test.scss [new file with mode: 0644]
scss/tests/sass-true/register.js [new file with mode: 0644]
scss/tests/sass-true/runner.js [new file with mode: 0644]
scss/tests/utilities/_api.test.scss [new file with mode: 0644]