-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test that parts of GOV.UK Frontend can be imported individually #1235
Conversation
d2f01f4
to
dcd297e
Compare
const sassFiles = glob.sync(`${configPaths.src}/overrides/**/*.scss`) | ||
|
||
it.each(sassFiles)('%s renders to CSS without errors', (file) => { | ||
return renderSass({ file: file }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking you can use renderSass({ file })
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me, tests are very clear.
Will need a changelog entry, @36degrees could you make sure to thank @penx for helping us with this one too 👍
Yay thanks! |
c484aa1
to
df54ea9
Compare
Ensure that files within certain layers render to CSS without error when imported individually:
This will test that e.g. files within these layers import their own dependencies.
This builds on the work done by @penx in #1226.
Closes #1226