- Notifications
You must be signed in to change notification settings - Fork 468
Closed
Labels
Description
@testing-library/domversion: 7.22.6- Testing Framework and version: jest@24.9.0
- DOM Environment: jsdom 16.4.0
Relevant code or config:
import { configure } from '@testing-library/react'; configure({ showOriginalStackTrace: false });What you did:
I was going to configure the showOriginalStackTrace option and
What happened:
I got the following typescript error:
Argument of type '{ showOriginalStackTrace: boolean; }' is not assignable to parameter of type 'Partial<Config> | ConfigFn'. Object literal may only specify known properties, and 'showOriginalStackTrace' does not exist in type 'Partial<Config> | ConfigFn' Problem description:
The Config interface contains a typo:
dom-testing-library/types/config.d.ts
Line 8 in 741096b
| showOriginalStrackTrace: boolean |
Suggested solution:
Change showOriginalStrackTrace to showOriginalStackTrace.
eps1lon