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: add bun2jest workflow #327

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: add bun2jest workflow #327

wants to merge 1 commit into from

Conversation

morgante
Copy link
Contributor

@morgante morgante commented May 13, 2024

Greptile Summary

This is an auto-generated summary

  • Added bun2jest.ts workflow to transform Jest configurations for Bun compatibility
  • Introduced functions to transform test and setup files
  • Included steps to load Jest configuration and apply Bun configuration

@morgante
Copy link
Contributor Author

morgante commented Jun 3, 2024

@greptileai Review this plz.


// Look for a jest.config.json file
const targetFile = 'jest.config.js';
const config = await import(`${targetDir}/${targetFile}`);
Copy link

Choose a reason for hiding this comment

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

Consider adding error handling for the import statement to manage cases where the jest.config.js file does not exist.

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.

1 participant