-
Notifications
You must be signed in to change notification settings - Fork 338
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
Fix components relying on global builds #588
Conversation
@@ -26,6 +26,8 @@ Internal: | |||
(PR [#574](https://github.com/alphagov/govuk-frontend/pull/574)) | |||
- Ensure render function does not have undefined object | |||
(PR [#587](https://github.com/alphagov/govuk-frontend/pull/587)) | |||
- Fix components relying on global builds |
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.
Given footer hasn't been released yet, is this something we need to document? As the thing we're fixing was never actually released?
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.
Agreed, that's why this change is under 'Internal' not 'Fix'
@@ -22,7 +22,7 @@ | |||
"build:dist": "node bin/check-nvmrc.js && gulp build:dist --destination 'dist' && npm run test:build:dist", | |||
"test": "standard && gulp test && npm run test:app && npm run test:components && npm run test:generate:readme", | |||
"test:app": "jest app/__tests__/app.test.js --forceExit # express server fails to end process", | |||
"test:components": "jest src/", | |||
"test:components": "jest src/ && jest tasks/gulp/__tests__/check-individual-components-compile.test.js", |
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.
Should this run all tests under tasks/gulp/__tests__
rather than a specific case?
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.
Some of the task tests run 'after' tasks. So they're dependant on a task running.
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.
👍
} | ||
|
||
describe('Individual components', () => { | ||
it('should compile individual scss files', done => { |
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.
Can we have an expectation in this test (expect not to throw an exception?) to make it explicit what this is testing?
Iterate through all components and build their Sass, checking for build errors.
4aaaf0d
to
1f6892b
Compare
No description provided.