reporter
reporter copied to clipboard
Reporter to ESM
Rewrite reporter to use ESM syntax.
Description: previously we used commonjs syntax inside reporter (require), not we changed it to esm (import).
It affects just project internally and should not break anything. But the changes are huge and everything may be broken.
Release: 2.0.0-beta-esm
Affected areas:
- everything
- every adapter (except cucumber <=6)
- every testomat function (artifact, step, log)
- each functionality should be tested with both esm and commonjs syntax
https://github.com/testomatio/reporter/pull/360
Testing checklist:
- [x] frameworks
- [x] playwright @olexandr13
- [x] jest
- [x] mocha @olexandr13
- [x] wdio @olexandr13
- [x] cucumber @olexandr13
- [x] cypress @olexandr13
- [x] codecept @olexandr13
- [ ] jasmine (low priority, not used widely)
- [x] vitest @olexandr13
- [x] xml reporter @olexandr13
- [x] html report @olexandr13
- [x] testomat functions/services (artifact, step, log) @olexandr13
- [ ] pipes @olexandr13
- [x] debug
- [x] html
- [x] other pipes (github, gitlab) just invoke and check no errors; (not tested: csv, bitbucket)
- [x] artifacts upload
- [x] cli @olexandr13
- [x] everything above should be tested:
- [x] using both syntaxes
- [x] commonjs (require) @olexandr13
- [x] esm (import) @olexandr13
also recommend to set
typetocommonjsormodulein package.json when using appropriate module system
- [x] specifying both paths to reporters:
- [x] old (full) (
node_nodules/@testomatio/reporter/lib/adapter/playwright.js) @olexandr13 - [x] new (short)
@testomatio/reporter/playwright) @@olexandr13
- [x] old (full) (
- [x] using both syntaxes
- [x] Types @olexandr13