-
Notifications
You must be signed in to change notification settings - Fork 279
How to fixed this error render() #1575
Unanswered
Abdulmateenchitrali
asked this question in
Q&A
-
'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()
})
});
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
@Abdulmateenchitrali please post the content of UpgradeCard
file.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment