Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion content/docs/plugins/expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ test('add two numbers', ({ expect }) => {
})
```

In Jest, the `expect` property is available globally. However, with Japa, we recommend you always read it from the Test context.
In Jest, the `expect` property is available globally. However, with Japa, we recommend you always read it from the Test context. If you're getting an error saying `expect` is not available from `TestContext`, make sure you included the bin folder in your `tsconfig.json` file:

```json
{
"include": ["bin", "src", "tests"]
}
```