Initial commit: Analyzing move to file refactor issue with React components

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-14 18:25:34 +00:00
co-authored by RyanCavanaugh
parent 7dd3d82509
commit 917e69c247
@@ -0,0 +1,34 @@
/// <reference path='fourslash.ts'/>
// @jsx: react
// @Filename: /Component.tsx
////import React from 'react';
////
////export const ComponentA = () => {
//// return <div>Component A</div>;
////};
////
////[|export const ComponentB = () => {
//// return <div>Component B</div>;
////};|]
verify.moveToNewFile({
newFileContents: {
"/Component.tsx":
`import React from 'react';
export const ComponentA = () => {
return <div>Component A</div>;
};
`,
"/ComponentB.tsx":
`import React from 'react';
export const ComponentB = () => {
return <div>Component B</div>;
};
`,
},
});