Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related JIRA tickets:
What exactly does this PR do?
.env.testfor running the tests instead of using the same.envused for development purposes. In addition, a directoryhl7-uploads-testis created to temporary stores the500HL7Messages.txtproduced by the tests.500HL7Messages.txtcreated after running theyarn test. This allows you to run the tests over and over again. Before, you had to manually delete500HL7Messages.txtin order to pass all tests. If you ran the tests with500HL7Messages.txtstill indata/hl7-uploads, some tests would fail.Do ANY of these changes introduce a breaking change? (in-scope or otherwise)
Manual test cases?
Case 1
yarn testconfig.js: Using .env.test.env.testenv file and not the.envfor developmentAfter running
yarn test, ensure that you have the following directory:data/hl7-uploads-test/and that it's empty, meaning it doesn't have the file500HL7Messages.txtin it.yarn testmore than once without failing any tests. This is something we couldn't do before this PR.Case 2
yarn startconfig.js: Using .env