Skip to content

Typo in  #761

Closed
Closed
@slowselfip

Description

@slowselfip
  • @testing-library/dom version: 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:

showOriginalStrackTrace: boolean

Suggested solution:

Change showOriginalStrackTrace to showOriginalStackTrace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions