egoist / egoist/tsup

How to remove data-testid

Open
#1,031 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.