storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook
MIT License
245 stars 52 forks source link

await-interactions: Fix bad expect matchers #27

Closed shilman closed 2 years ago

shilman commented 2 years ago

Issue: N/A

What Changed

The following should be valid

await expect(foo).toBe(bar);

This required fixing the logic around awaiting expectations!

Checklist

Check the ones applicable to your change:

Change Type

Indicate the type of change your pull request is:

yannbf commented 2 years ago

Thanks!! Works perfectly 🙏

github-actions[bot] commented 2 years ago

:rocket: PR was released in v0.3.0 :rocket: