Skip to content

Conversation

Lebei2046
Copy link

This PR replaces the JSON import assertion in test files with the fs/promises API for better Node.js compatibility. This change makes the tests more compatible with different Node.js versions and environments.

Changes made:

  • Updated test/index.js to use fs/promises readFile instead of JSON import assertion
  • Added proper file path resolution using path and url modules

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