-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.test.ts.snap
45 lines (38 loc) · 1.03 KB
/
index.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Vitest Snapshot v1
exports[`export default a render function 1`] = `
"// export default a render function
export default function () {
return /*#__PURE__*/React.createElement(\\"div\\", null);
}"
`;
exports[`export default function containing nested function component 1`] = `
"// export default function containing nested function component
export default function () {
function Foo() {
return /*#__PURE__*/React.createElement(\\"div\\", null);
}
Foo.displayName = \\"Foo\\";
return Foo;
}
;"
`;
exports[`export default named function 1`] = `
"// export default named function
export default function Foo() {
return /*#__PURE__*/React.createElement(\\"div\\", null);
}
Foo.displayName = \\"Foo\\";"
`;
exports[`render function returns jsx 1`] = `
"// render function returns jsx
function renderFoo() {
return /*#__PURE__*/React.createElement(\\"div\\", null);
}"
`;
exports[`return jsx 1`] = `
"// return jsx
function Foo() {
return /*#__PURE__*/React.createElement(\\"div\\", null);
}
Foo.displayName = \\"Foo\\";"
`;