Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 365 forks source link

Create unit test for script-tags.liquid and style-tags.liquid generators #916

Open t-kelly opened 5 years ago

t-kelly commented 5 years ago

Problem

There have been a number of bugs and regressions (https://github.com/Shopify/slate/issues/489, https://github.com/Shopify/slate/issues/587, https://github.com/Shopify/slate/pull/771, https://github.com/Shopify/slate/issues/806, https://github.com/Shopify/slate/pull/808, ) over the past few months which all stem from script-tags.html and style-tags.html. These template files are super hard to read and navigate, but their output is exactly what we want. Regardless of if we keep or refactor the contents of these files, their output should remain stable. This is perfect for some unit tests.