Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Unit tests are missing when script type="module" takes >= 3ms before describe #243

@loynoir

Description

@loynoir

Repo

https://github.com/loynoir/reproduce-karmaMocha-237.mjs

Scenario

  • import a slow ESM module
  • and it takes ~1 second

Reproduce

$ npm install
$ npm test

Expected

Three tests

  CJS
    ✔ bar
  fastESM
    ✔ bar
  slowESM
    ✔ bar

SUMMARY:
✔ 3 tests completed

Actual

Missing unit test slowESM, but exit with code 0.

  CJS
    ✔ bar
  fastESM
    ✔ bar

SUMMARY:
✔ 2 tests completed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions