diff --git a/packages/core/update/Update.ts b/packages/core/update/Update.ts index 5b25396f4..b8ce5c9f0 100644 --- a/packages/core/update/Update.ts +++ b/packages/core/update/Update.ts @@ -28,6 +28,7 @@ export async function updateWorkspace(rootPath: string): Promise { guideLink = "https://www.infragistics.com/products/ignite-ui-react/react/components/general-licensing"; logicFilesExtension = "tsx"; styleExtensions = ["css"]; + shouldUpgradeHTML = true; break; case "webcomponents": guideLink = "https://www.infragistics.com/products/ignite-ui-web-components/web-components/components/general-licensing"; diff --git a/spec/unit/update-spec.ts b/spec/unit/update-spec.ts index 3ce6dbf44..f24d92cf5 100644 --- a/spec/unit/update-spec.ts +++ b/spec/unit/update-spec.ts @@ -504,6 +504,7 @@ title = 'igniteui-angular example'; (fsSpy.fileExists as jasmine.Spy).and.returnValue(true); (fsSpy.glob as jasmine.Spy).and.returnValues // per workspace ([ "package.json" ], // root package.json + [], // html files [], // logic files [], // for each style extension []); // inner package.json files @@ -525,7 +526,7 @@ title = 'igniteui-angular example'; } })); expect(fsSpy.writeFile).toHaveBeenCalledTimes(1); - expect(fsSpy.glob).toHaveBeenCalledTimes(4); + expect(fsSpy.glob).toHaveBeenCalledTimes(5); }); it("Should update import paths in files correctly", async () => { @@ -609,9 +610,55 @@ export default function Home() { - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc - run: npm i # replace with 'npm ci' after committing lock file from first install # end content -`}]; +`}, +{ + path: "index.html", + content: + ` + + + + + + + IgniteUI for React + + + +
+ + + `, + expected: + ` + + + + + + + IgniteUI for React + + + +
+ + + ` +},]; (fsSpy.glob as jasmine.Spy).and.returnValues // per workspace ([ "package.json" ], // root package.json + ["index.html"], // html file [ "src/home.tsx" ], // logic files [], // for each style extension []); // inner package.json files @@ -628,7 +675,7 @@ export default function Home() { for (const fileEntry of mockFileArray) { expect((fsSpy.writeFile as jasmine.Spy)).toHaveBeenCalledWith(fileEntry.path, fileEntry.expected); } - expect(fsSpy.glob).toHaveBeenCalledTimes(4); + expect(fsSpy.glob).toHaveBeenCalledTimes(5); }); it("Should update package.json files from workspaces", async () => { @@ -719,6 +766,7 @@ export default function Home() { (fsSpy.fileExists as jasmine.Spy).and.returnValue(true); (fsSpy.glob as jasmine.Spy).and.returnValues // per workspace ([ "package.json" ], // root package.json + [], // index.html [], // projectA logic files [], // projectA for each style extension [ "./projectA/package.json" ], // projectA package.json @@ -740,7 +788,7 @@ export default function Home() { for (const fileEntry of mockFileArray) { expect((fsSpy.writeFile as jasmine.Spy)).toHaveBeenCalledWith(fileEntry.path, fileEntry.expected); } - expect(fsSpy.glob).toHaveBeenCalledTimes(7); + expect(fsSpy.glob).toHaveBeenCalledTimes(8); }); });