earl icon indicating copy to clipboard operation
earl copied to clipboard

setTestRunnerIntegration is not exported from top level

Open andrew0 opened this issue 3 years ago • 1 comments

I'm trying to use earl with uvu for its snapshot capabilities, but it seems like the setTestRunnerIntegration is not exported from the package entrypoint, so I have to require earljs/dist/testRunnerCtx directly. Is this meant to be public API? If so, I think it would be better to export it from the index.

andrew0 avatar Feb 15 '22 01:02 andrew0

I initially thought that it shouldn't be easily accessible but we would rather add first-class support for other test runners.

@andrew0 feel free to add a PR with uvu support. Similiar to mocha: https://github.com/dethcrypto/earl/blob/master/packages/earljs/src/test-runners/mocha.ts

krzkaczor avatar Feb 15 '22 19:02 krzkaczor

This style of doing test runner support is being removed in v0.3 in favor of having no special configuration required.

sz-piotr avatar Mar 19 '23 13:03 sz-piotr