-
Notifications
You must be signed in to change notification settings - Fork 215
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
chore(common): CHECKOUT-6591 Set node version to 14 for repo #1404
Conversation
4f9777b
to
7c0b160
Compare
Could you update .nvmrc too? |
7c0b160
to
e3f6e6a
Compare
.nvmrc
Outdated
@@ -1 +1 @@ | |||
10 | |||
14 |
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.
14 | |
14.18 |
To match with the version we're using in CircleCI
package.json
Outdated
"homepage": "https://github.com/bigcommerce/checkout-sdk-js", | ||
"scripts": { | ||
"prepare": "check-node-version --node '>=6' --npm '>=6'", | ||
"prepare": "check-node-version --node '>=14' --npm '>=6'", |
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.
"prepare": "check-node-version --node '>=14' --npm '>=6'", | |
"prepare": "check-node-version --node '>=14.18' --npm '>=6'", |
@@ -246,6 +246,24 @@ describe('MonerisPaymentStrategy', () => { | |||
}); | |||
|
|||
describe('#execute', () => { | |||
it('throws error when moneris response is not successful', async () => { |
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.
Do we need this change? It seems you just moved the it
block to the top?
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.
Yes there is an issue how these tests are written, as postmessage payload was not leaking through tests and it was having intermittent behaviour. So I moved this one to top, and that fixed the issue. Once this is merged I will ping the integrations team to have a look as to what exactly was causing the issue with the test.
e3f6e6a
to
dc81474
Compare
dc81474
to
e6a6d90
Compare
What?
Update node version of sdk
Why?
Before we start the next project, it's better to update to a newer node version
Testing / Proof
@bigcommerce/checkout