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

[Test] Support loading of mts in test files #95

Closed

Conversation

amoshydra
Copy link
Contributor

@amoshydra amoshydra commented Apr 10, 2024

⚠⚠⚠

There is another PR #96 that make both test and coverage works using ts-jest (without jest-light-runner)
This PR may be obsoleted if jest-light-runner is not necessary

⚠⚠⚠

Summary

Support loading of mts by registring ts-node/esm for the jest tests

Related issue

To resolve #94

Motivation

To be able to run test

How is this tested?

Before

See issue in #94

After

image

@amoshydra amoshydra marked this pull request as ready for review April 10, 2024 10:09
@amoshydra amoshydra changed the title Test to support loading of mts [Test] Support loading of mts in test files Apr 10, 2024
@amoshydra
Copy link
Contributor Author

Closing. My understanding on how the test run was wrong.
We are suppose to run build first npx tsc before running test.

This PR is no longer necessary as my initial motivation is also covered in the newer commits in #93

@amoshydra amoshydra closed this Apr 10, 2024
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.

Unable to run test due to "Error [ERR_MODULE_NOT_FOUND]: Cannot find module *.mjs"
1 participant