Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

chore: update integ tests #207

Closed
wants to merge 7 commits into from

Conversation

nguyen102
Copy link
Contributor

Issue #, if available:

Description of changes:

Checklist:

  • Have you successfully deployed to an AWS account with your changes?
  • Have you written new tests for your core changes, as applicable?
  • Did you add new integration tests?
  • Did you run integration tests with your changes?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the size/s label Jul 3, 2023

dotenv.config({ path: '.env' });
import path from "path";
dotenv.config({ path: path.resolve(__dirname, './.env') });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This allows tests to read the environment file in correctly.


describe('MigrationUtils', () => {
describe('getFhirClient', () => {
test('client should be able to authenticate', async () => {
await expect(getFhirClient()).resolves.not.toThrowError();
await expect(getFhirClient()).resolves.toBeDefined();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not.toThrowError() wasn't working properly so I updated the code based on this SO
https://stackoverflow.com/questions/65793240/testing-for-an-error-not-being-thrown-by-an-async-function

},
"dependencies": {
"axios": "0.25.0",
"axios": "0.26.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was getting this error error: Error: Provided config url is not valid

It was fixed in version 0.26.
axios/axios#4407

@nguyen102 nguyen102 force-pushed the thingut/migrate-tool-int-test-fixes branch from 38c5396 to 85c069e Compare July 3, 2023 18:48
@nguyen102 nguyen102 changed the title chore: update unit tests chore: update integ tests Jul 3, 2023
@@ -3,7 +3,7 @@
"rushVersion": "5.83.1",
"pnpmVersion": "7.13.0",
"nodeSupportedVersionRange": ">=16.13.0 <17.0.0 || >=18.14.0 <19.0.0",
"ensureConsistentVersions": true,
"ensureConsistentVersions": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allows fwoa-tools to have a different package version of axios from the other projects in the repo

@ssvegaraju ssvegaraju closed this Jul 11, 2023
@ssvegaraju ssvegaraju deleted the thingut/migrate-tool-int-test-fixes branch July 11, 2023 16:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants