diff --git a/README.md b/README.md index b318f5b..bbf2fe2 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ The package exports a function, `configure`. It is written in Typescript and exp ```ts import { configure } from "mocha-they"; +// Or (they is an alias of configure) +import { they } from "mocha-they"; +// Or (ESM only) +import configure from "mocha-they"; ``` Test functions receive a new argument. diff --git a/src/index.ts b/src/index.ts index 818d003..76bed6a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -167,5 +167,6 @@ function configure( return they; } +export default configure; export { configure }; export const they = configure;