Skip to content

Commit

Permalink
feat: default export for esm usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 4, 2024
1 parent 59099f6 commit 9226734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,6 @@ function configure<T, U = T>(
return they;
}

export default configure;
export { configure };
export const they = configure;

0 comments on commit 9226734

Please sign in to comment.