Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Jest-lint errors when presented with legitimate elements in a snapshot #26

@colincclark

Description

@colincclark

This returns a TypeError:

exports[`2. an article with a video as the lead asset 1`] = `
<RCTScrollView
  ListHeaderComponent={
    <bound renderHeader
      width={1440}
    />
  }
  initialNumToRender={10}
  maxToRenderPerBatch={10}
  numColumns={1}
   onEndReachedThreshold={2}
   scrollEventThrottle={50}
   updateCellsBatchingPeriod={50}
   windowSize={21}
 >
   <View>
     <View>
       <View>
         <Video
           accountId="5436121857001"
           height={421.875}
           policyKey="1.2.3.4"
           poster={
             Object {
               "uri": "https://video169.io",
             }
           }
           videoId="5831024132001"
           width={750}
         />
       </View>
       <View>
         <View>
           <VideoLabel
             color="#333333"
             title={null}
           />
         </View>
         <Text
           selectable={true}
         >
           Some Headline
         </Text>
       </View>
       <View>
         <View>
           <Text>
             Friday March 13 2015, 6:54pm, The Times
           </Text>
         </View>
       </View>
     </View>
     <View>
       <View>
         <Text
           selectable={true}
         >
           Some content
         </Text>
       </View>
     </View>
     <View />
     <View>
       <ArticleComments
         articleId="198c4b2f-ecec-4f34-be53-c89f83bc1b44"
         url="https://url.io"
       />
     </View>
   </View>
 </RCTScrollView>
 `;

The offending piece of code is:

ListHeaderComponent={
    <bound renderHeader
      width={1440}
    />
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions