-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update front end dependencies #29
Conversation
avoiding breaking changes mentioned here salesforce/tough-cookie#246 which no longer allows localhost domains
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.
Looks great @jasmine-q! I ran up and the app and smoke tested - looks like everything's working as expected (ah chirps... brings back memories 😀)
Ran the tests and checked in on my interview repo - the date/locale related snapshot failures were there for me too so I think that's intentional?
Thanks for the review @kalopilato!! |
Ermmm I don't think it's intentional, can you shoot me the error you're getting? |
@ticky There are 9 test snapshot failures, all on I noted them in my interview too, and at the time just assumed they were part of the assessment 🤷 (I didn't fix them though, I chose to put my time elsewhere) |
Ohhh, hmm, yeah I think that's actually an oversight. I guess we're not specifying the locale, so it's whatever the local user is set to. |
@ticky do we want to fix this or leave it as part of the "coding challenge"? |
Yeah, maybe we just lock to a known locale here:
should be as simple as changing it to: date.toLocaleString(DateTime.DATETIME_SHORT, { locale: 'en-AU' }) |
23469e4
to
595ff80
Compare
As a quick exercise, I tried applying the update suggested by @ticky but it didn't seem to work.
I didn't really want to dedicate too much time into this, so I can't be for absolute certain if my setup (node 18.8.0 w/ jest 29.0.2) is the root cause of this issue. I am wondering if there's anyone that feels that fixing these specs as part of the exercise could be beneficial or detrimental for a candidate's performance? Happy to go with my gut feel, but getting the braintrust's input is always a 👌 experience in my eyes. |
Thanks for trying to set the locale @AeroCross! Please try pulling it down and running the tests now. |
Nice one @jasmine-q 👌 That worked a treat! I reckon the date format change is inconsequential in this case, and updating the snapshots was a good call - not worth extra braining to match the pre-existing snapshots 👍 |
I went ahead and ran
yarn upgrade-interactive --latest
and checked everything.Ran the app and tests, then fixed any breaking changes
Notable changes
☝️ for this last point we should probably change it to use localhost.local or something later on?
Note: all the snapshots tests fail on my local, is that intentional?