Open adriaandotcom opened 4 years ago
I'm not sure Mocha.Suite.create
is a public mocha API.
It's the only way to have dynamically generate async tests: https://github.com/simpleanalytics/scripts/pull/5/files#diff-910eb6f57886ca16c136101fb1699231R118. It's uncommon, but I think it's the only way to run tests when you don't use the cli.
When using this code:
The output is (empty lines):
When using
require("mocha")
instead it returns fine: