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

chore(common): CHECKOUT-6591 Set node version to 14 for repo #1404

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

animesh1987
Copy link
Contributor

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

  • Tests

@bigcommerce/checkout

@animesh1987 animesh1987 force-pushed the CHECKOUT-6591 branch 5 times, most recently from 4f9777b to 7c0b160 Compare April 13, 2022 06:37
@animesh1987 animesh1987 marked this pull request as ready for review April 13, 2022 06:44
@animesh1987 animesh1987 requested a review from a team as a code owner April 13, 2022 06:44
@animesh1987 animesh1987 changed the title WIP chore(common): CHECKOUT-6591 Set node version to 14 for repo chore(common): CHECKOUT-6591 Set node version to 14 for repo Apr 13, 2022
@TomA-R
Copy link
Member

TomA-R commented Apr 13, 2022

Could you update .nvmrc too?

.nvmrc Outdated
@@ -1 +1 @@
10
14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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 () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@animesh1987 animesh1987 merged commit a046def into bigcommerce:master Apr 14, 2022
@animesh1987 animesh1987 deleted the CHECKOUT-6591 branch April 14, 2022 05:43
orecio-bc pushed a commit to orecio-bc/checkout-sdk-js that referenced this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants