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

🐛 Make Test No Longer Modifies Tsconfig #99

Merged
merged 3 commits into from
Jan 5, 2022
Merged

Conversation

lprichar
Copy link
Collaborator

@lprichar lprichar commented Jan 5, 2022

Issue

Fixes #98

Description

make test was previously modifying tsconfig.json in the api-client. This PR fixes that by:

  1. Fixing the tsconfig.test.json to be compatible with testing
  2. Adding move-file-cli, a cross platform MIT Licensed "file mover" to dev dependencies
  3. Prior to running tests it now backs up the tsconfig.json and moves over the tsconfig.test.json
  4. Subsequent to running tests it restores both files to their original state

Testing

Run make test, ensure it doesn't modify any tsconfig files

The prior version wasn't being used afaik, and it also doesn't work if you do manually copy it over
Copy link
Collaborator

@SteveMaier-IRT SteveMaier-IRT left a comment

Choose a reason for hiding this comment

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

Looks good. Seen this used by others online and seems like the safest way.

@keithrfung keithrfung merged commit 6f0b05c into main Jan 5, 2022
@keithrfung keithrfung deleted the bug/98-tsconfig branch January 5, 2022 14:45
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.

🐞 Make Test Modifies tsconfig.json
3 participants