CSS tests
summary
Claims that every line of CSS can be tested by turning SASS into CSS and asserting outputs, with concrete examples: using sass.renderSync to get generated CSS strings, using a JS test framework to import SASS code, run a fake selector and expect exact CSS, and using snapshot testing plus the test runner’s updateSnapshot flow to detect and accept deliberate changes. Visual checks appear via Puppeteer and screenshots for regression proof of concept.
AI-written summary · about
related talks
30mLet's Test Our CSS!
42mAutomated CSS Testing
27mTest Your CSS with CSS
30mImplementing a Visual CSS Testing Framework
27mWriting Tests For CSS Is Possible! Don’t Believe The Rumors
29mDon’t Believe the Rumors Writing Tests for CSS is Possible
18mImplementing a Visual CSS Testing Framework
26mDon’t Believe the Rumors: Writing Tests for CSS is Possible
