@storybook/testing-react
Advanced tools
Comparing version 0.0.18--canary.29.8540aca.0 to 0.0.18--canary.33.6e6a4b1.0
{ | ||
"name": "@storybook/testing-react", | ||
"version": "0.0.18--canary.29.8540aca.0", | ||
"version": "0.0.18--canary.33.6e6a4b1.0", | ||
"description": "Testing utilities that allow you to reuse your stories in your unit tests", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -139,2 +139,18 @@ <p align="center"> | ||
Type inference is only possible in projects that have either `strict` or `strictBindApplyCall` modes set to `true` in their `tsconfig.json` file. You also need a TypeScript version over 4.0.0. If you don't have proper type inference, this might be the reason. | ||
```json | ||
// tsconfig.json | ||
{ | ||
"compilerOptions": { | ||
// ... | ||
"strict": true, // You need either this option | ||
"strictBindCallApply": true // or this option | ||
// ... | ||
} | ||
// ... | ||
} | ||
``` | ||
### Disclaimer | ||
@@ -165,6 +181,4 @@ | ||
You should use TypeScript version >4. You will also need to add `strictBindCallApply: true` in your `tsconfig.json`, and verify that stories are correctly included in your `tsconfig.json`. To do so, run `tsc --listFiles | grep stories`, you should see your stories. | ||
## License | ||
[MIT](./LICENSE) |
70330
183