Skip to content
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

Merged
merged 6 commits into from
Mar 5, 2019

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Mar 5, 2019

Ensure that files within certain layers render to CSS without error when imported individually:

  • Core
  • Objects
  • Components
  • Overrides

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

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1235 March 5, 2019 11:02 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1235 March 5, 2019 11:38 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1235 March 5, 2019 11:39 Inactive
const sassFiles = glob.sync(`${configPaths.src}/overrides/**/*.scss`)

it.each(sassFiles)('%s renders to CSS without errors', (file) => {
return renderSass({ file: file })
Copy link
Contributor

@NickColley NickColley Mar 5, 2019

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

Copy link
Contributor

@NickColley NickColley left a 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 👍

@penx
Copy link

penx commented Mar 5, 2019

Yay thanks!

@NickColley NickColley added this to the 2.8.0 milestone Mar 5, 2019
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1235 March 5, 2019 14:29 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants