-
Notifications
You must be signed in to change notification settings - Fork 335
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
Listen for development server on different port for tests #622
Conversation
dabe6f8
to
864c3da
Compare
864c3da
to
c31ea93
Compare
do you also need to change the heroku script in package.json? |
c31ea93
to
d294ee8
Compare
d294ee8
to
f214d4d
Compare
f214d4d
to
02bfb3d
Compare
02bfb3d
to
d62c8e3
Compare
could we have |
I don't like using globals in Node.js projects, so tried that but it felt over-the-top, this repeats it but requires less thinking to understand the code. Happy to put it back in though |
don't forget the changelog as well |
80140af
to
541f483
Compare
541f483
to
e41e605
Compare
Required some refactoring of how we listen since the tests were not actually, adding a new listener. Fixes issues with tests not closing properly by allowing tests to turn off nunjucks watch mode. Used https://github.com/mafintosh/why-is-node-running to identify and fix this issue.
e41e605
to
145c7c6
Compare
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.
💯
Required some refactoring of how we listen since the tests were not actually,
adding a new listener.
Also fixes issues with tests not closing properly by allowing tests to turn off
nunjucks watch mode.
Used https://github.com/mafintosh/why-is-node-running to identify and fix this issue.
Use https://github.com/alphagov/govuk-frontend/pull/622/files?w=1 to see changes without whitespace updates, since I've indented a lot of code.
Fixes #612