test-results-reporter / parser

Parse test results from JUnit, TestNG, xUnit and many more
https://www.testbeats.com
MIT License
12 stars 9 forks source link

ES Module support #42

Open bryanbcook opened 1 year ago

bryanbcook commented 1 year ago

I attempted to add d3-time-format to the project but received an error similar to 'change the require to a dynamic import'.

This would require all the require statements to be converted over to import syntax

References:

ASaiAnudeep commented 1 year ago

Is it possible to use day.js instead of d3-time-format?

bryanbcook commented 1 year ago

I can take a look at day.js

Is there a reason the project doesn't use ESM? I have a local branch with the appropriate changes. I can push it if you'd like to test it out.

ASaiAnudeep commented 12 months ago

We utilize require for loading dynamic modules in the reporter. I presume that if we transition this package to ESM, a corresponding conversion of the reporter and all the upstream projects will be necessary.