File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
packages/cli/src/commands/generate/component Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ exports[`creates a TS component and test 1`] = `
44"const TypescriptUser = () => {
55 return (
66 <div >
7- <h2 >{ ' TypescriptUser' } </h2 >
8- <p >
9- { ' Find me in ./web/src/components/TypescriptUser/TypescriptUser.tsx' }
10- </p >
7+ <h2 >TypescriptUser</h2 >
8+ <p >Find me in ./web/src/components/TypescriptUser/TypescriptUser.tsx</p >
119 </div >
1210 )
1311}
@@ -38,8 +36,8 @@ exports[`creates a multi word component 1`] = `
3836"const UserProfile = () => {
3937 return (
4038 <div >
41- <h2 >{ ' UserProfile' } </h2 >
42- <p >{ ' Find me in ./web/src/components/UserProfile/UserProfile.jsx' } </p >
39+ <h2 >UserProfile</h2 >
40+ <p >Find me in ./web/src/components/UserProfile/UserProfile.jsx</p >
4341 </div >
4442 )
4543}
@@ -91,8 +89,8 @@ exports[`creates a single word component 1`] = `
9189"const User = () => {
9290 return (
9391 <div >
94- <h2 >{ ' User' } </h2 >
95- <p >{ ' Find me in ./web/src/components/User/User.jsx' } </p >
92+ <h2 >User</h2 >
93+ <p >Find me in ./web/src/components/User/User.jsx</p >
9694 </div >
9795 )
9896}
Original file line number Diff line number Diff line change 11const ${pascalName} = () => {
22 return (
33 <div>
4- <h2>{' ${pascalName}' }</h2>
5- <p>{' Find me in ${outputPath}' }</p>
4+ <h2>${pascalName}</h2>
5+ <p>Find me in ${outputPath}</p>
66 </div>
77 )
88}
You can’t perform that action at this time.
0 commit comments