Edit environment variables programmatically in Unit Tests
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
**What is your question?**
A clear and concise description of what you are wanting to ask. Ex. I'm always frustrated when [...]
Environment variable and template tags are very powerful in Collections, but I don't find any document about their usage in Unit testing. Is it possible to use them in Unit testing?
In addition, I'd like to get some data from external apis to automate some testing scenarios, do Unit testing support it?
**What is the context?**
If applicable, describe the context in which you are asking the question. Ex. I am trying to do _x_ with _y_ [...]
To support table-driven testing, I'd like to define a static list of data before executing tests. In some special cases, these data can be got from external apis which I'd like to call to get that data to use, therefore, I need to call external api in unit testing.
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the unit-testing functionality and its handling of environment variables and template tags, then determine whether external API calls are supported; done should be a documented answer or a clearly scoped implementation request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100