Skip to content
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

feat(jest-cli): export buildArgv #12456 #15310

Merged
merged 4 commits into from
Jan 15, 2025
Merged

feat(jest-cli): export buildArgv #12456 #15310

merged 4 commits into from
Jan 15, 2025

Conversation

dongwa
Copy link
Contributor

@dongwa dongwa commented Sep 18, 2024

Summary

People need a function to get the argv of runCLI,so we should export buildArgv to help that,ref #12456
image

And then, we can use this way to run jest programmatically with ts support

import { runCLI, buildArgv} from 'jest'

  const jestArgv = await buildArgv(process.argv)
  runCLI(
    jestArgv,
    [cwd]
  )

Copy link

linux-foundation-easycla bot commented Sep 18, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for jestjs ready!

Name Link
🔨 Latest commit a272b17
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/67875d9337cb4100086647c5
😎 Deploy Preview https://deploy-preview-15310--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Dec 17, 2024
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB enabled auto-merge (squash) January 15, 2025 07:03
@github-actions github-actions bot removed the Stale label Jan 15, 2025
@SimenB SimenB disabled auto-merge January 15, 2025 09:51
@SimenB SimenB merged commit 45f56d5 into jestjs:main Jan 15, 2025
81 of 84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants