-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recharts vitest #423
base: main
Are you sure you want to change the base?
Recharts vitest #423
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌🏼
@@ -40,10 +43,17 @@ export async function run(options: MeasureOptions) { | |||
const header = { metadata }; | |||
writeFileSync(outputFile, JSON.stringify(header) + '\n'); | |||
|
|||
const testRunnerPath = process.env.TEST_RUNNER_PATH ?? getJestBinPath(); | |||
if (!RUNNERS.includes(options.runner)) { | |||
logger.error(`❌ Invalid runner provided: ${options.runner}. Valid options are 'jest' and 'vitest'`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could enumerate the options from your RUNNERS
const. The native node test runner could be added later for example
Summary
Allows for users to pass in
--runner
flag to use eitherjest
orvitest
for the test runner. Defaults to `jest if no value is provided.Issue link
Test plan