Open IonianPlayboy opened 6 months ago
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 } });
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 :
Additional information