Add detection for tests runners ? (Jest, Vitest, Playwright, etc...)
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 641
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature
Most test framework sets a couple of env variables that we could use to detect them.
We could have a similar API here to the provider detection :
import { isTest, testRunner, testRunnerInfo } from "std-env";
console.log({
isCI, // true
provider, // "vitest"
providerInfo, // { name: "vitest", isTest: true, ...etc }
});
Additional information
- Would you be willing to help implement this feature?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing provider-detection API and the environment variables exposed by Jest, Vitest, and Playwright. Define the test-runner and runner-info behavior, then verify that the named runners are detected consistently without affecting existing provider detection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100