Skip to content

make unit tests run from ide with correct node env so ssh tests pass - #425

Open
melissarh57 wants to merge 2 commits into
mainfrom
melissahoo/unit-tests-pass-in-node-env
Open

make unit tests run from ide with correct node env so ssh tests pass#425
melissarh57 wants to merge 2 commits into
mainfrom
melissahoo/unit-tests-pass-in-node-env

Conversation

@melissarh57

Copy link
Copy Markdown
Contributor

Problem

SSh unit tests weren't working when ran from vitest integration within IDE. b/c missing NODE_ENV set to unit, like the yarn script does. and SSH needs that to do preprocessing so unit tests work. This configs vitest to always set NODE_ENV = unit

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (code changes that neither fix bugs nor add features)
  • Documentation update
  • Dependency update
  • Performance improvement
  • Security fix

Validation

Unit tests pass in both IDE and via yarn test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants