jessealama / decimal128

JavaScript userland partial implementation of IEEE 754 Decimal128 decimal floating-point arithmetic
BSD 2-Clause "Simplified" License
19 stars 8 forks source link

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

Closed amoshydra closed 6 months ago

amoshydra commented 6 months ago

⚠⚠⚠

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 commented 6 months ago

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