Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to fixed this error render() #1575

Unanswered
Abdulmateenchitrali asked this question in Q&A
Discussion options

'UpgradeCard' refers to a value, but is being used as a type here. Did you mean 'typeof UpgradeCard'
at this line

const tree = render(<UpgradeCard />).toJSON()
Full code

import React from "react";
import { render, fireEvent } from "@testing-library/react-native"
import { Linking } from "react-native";
import UpgradeCard from "../UpgradeCard";
describe("UpgradeCard", () => {
 
 it("renders correctly", () => {
 const tree = render(<UpgradeCard />).toJSON()
 expect(tree).toMatchSnapshot()
 })
 
 });
You must be logged in to vote

Replies: 1 comment

Comment options

@Abdulmateenchitrali please post the content of UpgradeCard file.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /