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

fix(package): fix brittle tests #34

Merged
merged 2 commits into from
Jun 17, 2021
Merged

fix(package): fix brittle tests #34

merged 2 commits into from
Jun 17, 2021

Conversation

nellyk
Copy link
Contributor

@nellyk nellyk commented Jun 17, 2021

Fix failing tests on the release process due to missing NODE_ENV value

Description

Motivation and Context

How Has This Been Tested?

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using babel-preset-amex?

@nellyk nellyk requested review from a team as code owners June 17, 2021 14:56
package.json Outdated
@@ -8,7 +8,7 @@
"test:lint": "eslint ./ --ignore-path .gitignore --ext .js",
"test:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i",
"test:git-history": "commitlint --from origin/main --to HEAD",
"test:unit": "jest",
"test:unit": "NODE_ENV=production jest",
Copy link
Contributor

Choose a reason for hiding this comment

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

do you know which was the brittle test ? ideally any test that relies on NODE_ENV being set to production should have it set so within the test

Choose a reason for hiding this comment

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

Likely the last PR that went in, not sure why the build passed on the PR though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah the last PR that went in, it didn't fail because we set the node_env properties on github workflows for tests but that is not the case for the release workflows

@nellyk nellyk merged commit 099c060 into main Jun 17, 2021
@nellyk nellyk deleted the fix/tests branch June 17, 2021 16:58
oneamexbot added a commit that referenced this pull request Jun 17, 2021
## [3.5.1](v3.5.0...v3.5.1) (2021-06-17)

### Bug Fixes

* **package:** fix brittle tests ([#34](#34)) ([099c060](099c060))
* **plugins:** include removeProps plugin only for production mode ([dfb83e2](dfb83e2))
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 3.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants