@@ -806,6 +806,7 @@ export default function Home() {
806806 ( fsSpy . fileExists as jasmine . Spy ) . and . returnValue ( true ) ;
807807 ( fsSpy . glob as jasmine . Spy ) . and . returnValues // per workspace
808808 ( [ "package.json" ] , // root package.json
809+ [ ] , //index.html
809810 [ ] , // logic files
810811 [ "./project/package.json" ] ) ; // inner package.json files
811812 ( fsSpy . readFile as jasmine . Spy ) . and . callFake ( ( filePath : string ) => {
@@ -827,7 +828,7 @@ export default function Home() {
827828 }
828829 } ) ) ;
829830 expect ( fsSpy . writeFile ) . toHaveBeenCalledTimes ( 2 ) ;
830- expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 3 ) ;
831+ expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 4 ) ;
831832 } ) ;
832833
833834 it ( "Should update import paths in files correctly" , async ( ) => {
@@ -839,6 +840,7 @@ export default function Home() {
839840 "dependencies": {
840841 "igniteui-webcomponents": "^4.7.0",
841842 "igniteui-webcomponents-core": "^4.7.0",
843+ "igniteui-webcomponents-grids": "^4.7.0",
842844 "igniteui-dockmanager": "^1.0.0",
843845 "some-package": "^0.0.0"
844846 }
@@ -849,6 +851,7 @@ export default function Home() {
849851 "dependencies": {
850852 "@infragistics/igniteui-dockmanager": "^1.0.0",
851853 "@infragistics/igniteui-webcomponents-core": "^4.7.0",
854+ "@infragistics/igniteui-webcomponents-grids": "^4.7.0",
852855 "igniteui-webcomponents": "^4.7.0",
853856 "some-package": "^0.0.0"
854857 }
@@ -874,7 +877,8 @@ import { ModuleManager } from '@infragistics/igniteui-webcomponents-core';
874877
875878export default class App extends LitElement {
876879 const title = 'igniteui-webcomponents example';
877- }` } , {
880+ }` } ,
881+ {
878882 path : ".github/workflows/node.js.yml" ,
879883 content :
880884`# start content
@@ -903,9 +907,48 @@ export default class App extends LitElement {
903907 - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc
904908 - run: npm i # replace with 'npm ci' after committing lock file from first install
905909# end content
906- ` } ] ;
910+ ` } ,
911+ {
912+ path : "index.html" ,
913+ content :
914+ `<!doctype html>
915+ <html lang="en-GB">
916+ <head>
917+ <meta charset="utf-8">
918+ <base href="/">
919+ <title>Ignite UI for Web Components</title>
920+ <link rel="stylesheet" href="./node_modules/igniteui-webcomponents-grids/grids/themes/light/bootstrap.css">
921+ <link rel="stylesheet" href="./styles.css">
922+ </head>
923+ <body class="ig-scrollbar">
924+ <app-root></app-root>
925+
926+ <script type="module" src="./dist/src/index.js"></script>
927+ </body>
928+ </html>
929+ ` ,
930+ expected :
931+ `<!doctype html>
932+ <html lang="en-GB">
933+ <head>
934+ <meta charset="utf-8">
935+ <base href="/">
936+ <title>Ignite UI for Web Components</title>
937+ <link rel="stylesheet" href="./node_modules/@infragistics/igniteui-webcomponents-grids/grids/themes/light/bootstrap.css">
938+ <link rel="stylesheet" href="./styles.css">
939+ </head>
940+ <body class="ig-scrollbar">
941+ <app-root></app-root>
942+
943+ <script type="module" src="./dist/src/index.js"></script>
944+ </body>
945+ </html>
946+ `
947+
948+ } , ] ;
907949 ( fsSpy . glob as jasmine . Spy ) . and . returnValues // per workspace
908950 ( [ "package.json" ] , // root package.json
951+ [ "index.html" ] , // html file
909952 [ "src/app.ts" ] , // logic files
910953 [ ] ) ; // inner package.json files
911954 ( fsSpy . readFile as jasmine . Spy ) . and . callFake ( ( filePath : string ) => {
@@ -921,7 +964,7 @@ export default class App extends LitElement {
921964 for ( const fileEntry of mockFileArray ) {
922965 expect ( ( fsSpy . writeFile as jasmine . Spy ) ) . toHaveBeenCalledWith ( fileEntry . path , fileEntry . expected ) ;
923966 }
924- expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 3 ) ;
967+ expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 4 ) ;
925968 } ) ;
926969
927970 it ( "Should update package.json files from workspaces" , async ( ) => {
@@ -1012,6 +1055,7 @@ export default class App extends LitElement {
10121055 ( fsSpy . fileExists as jasmine . Spy ) . and . returnValue ( true ) ;
10131056 ( fsSpy . glob as jasmine . Spy ) . and . returnValues // per workspace
10141057 ( [ "package.json" ] , // root package.json
1058+ [ ] , //index.html
10151059 [ ] , // projectA logic files
10161060 [ "./projectA/package.json" ] , // projectA package.json
10171061 [ ] , // projectB logic files
@@ -1031,7 +1075,7 @@ export default class App extends LitElement {
10311075 for ( const fileEntry of mockFileArray ) {
10321076 expect ( ( fsSpy . writeFile as jasmine . Spy ) ) . toHaveBeenCalledWith ( fileEntry . path , fileEntry . expected ) ;
10331077 }
1034- expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 5 ) ;
1078+ expect ( fsSpy . glob ) . toHaveBeenCalledTimes ( 6 ) ;
10351079 } ) ;
10361080 } ) ;
10371081} ) ;
0 commit comments