Skip to content

jest: RefreshControl in MessageList breaks MessagesAddress.snapshot.tsx #801

@dorianvp

Description

@dorianvp

Output:

jest --verbose -u MessagesAddress
 FAIL  __tests__/MessagesAddress.snapshot.tsx (13.172 s)
  Component Messages Address - test
    ✕ Messages Address - snapshot (12737 ms)

  ● Component Messages Address - test › Messages Address - snapshot

    RangeError: Invalid string length

      at printObjectProperties (node_modules/pretty-format/build/collections.js:170:47)
      at printComplexValue (node_modules/pretty-format/build/index.js:255:50)
      at printer (node_modules/pretty-format/build/index.js:325:10)

Deleting the following lines allows Jest to run normally:

refreshControl={
<RefreshControl
refreshing={false}
onRefresh={() => doRefresh(RefreshScreenEnum.MessageList)}
tintColor={colors.text}
title={translate('history.refreshing') as string}
/>
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions