If you typo'd an `expect` property, you got a cryptic error message:
```
Uncaught TypeError: Cannot create proxy with a non-object as target or handler
```
Now we get this nice friendly message:
```
1) a.spec.ts:6:9 › explodes ======================================================================
Error: expect: Property 'toBeLessThen' not found.
Did you mean 'toBeLessThan'?
See https://playwright.dev/docs/test-assertions for available options and documentation.
5 | const { test } = pwt;
6 | test('explodes', () => {
> 7 | expect.soft(1).toBeLessThen();
| ^
8 | });
9 |
```
Fixes #13218
|
||
|---|---|---|
| .. | ||
| html-reporter | ||
| playwright | ||
| playwright-chromium | ||
| playwright-core | ||
| playwright-ct-react | ||
| playwright-ct-svelte | ||
| playwright-ct-vue | ||
| playwright-firefox | ||
| playwright-test | ||
| playwright-webkit | ||
| recorder | ||
| trace-viewer | ||
| web | ||
| .eslintrc.js | ||