Skip to content

feat: add bun2jest workflow#327

Draft
morgante wants to merge 1 commit intomainfrom
bun-migrate
Draft

feat: add bun2jest workflow#327
morgante wants to merge 1 commit intomainfrom
bun-migrate

Conversation

@morgante
Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
Collaborator 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
Copy Markdown

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