How to remove data-testid
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have a ui component library and I added `data-testid` to the components so that I can test them with jest but I read that it could be a security issue if it remains in production. Now I want to remove the `data-testid` when running the build command.
Is there a way to do that in tsup?
Contributor guide
Research direction
Start by reviewing tsup's build options and how the reported TypeScript UI component library uses the build command and Jest. Define whether removing data-testid is supported and what production output should contain; the issue names no files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100