@@ -100,17 +100,13 @@ const getDevDependencies = (frameworkType) => {
100
100
const mochaDeps = [
101
101
{ name : "mocha" , version : "~5.2.0" } ,
102
102
{ name : "mochawesome" , version : "~3.1.2" } ,
103
+ { name : "chai" , version : "~4.1.2" } ,
103
104
{ name : "@types/mocha" , version : "~5.2.5" } ,
104
105
{ name : "@types/chai" , version : "~4.1.7" } ,
105
106
{ name : "@types/node" , version : "~10.12.18" } ,
106
- ]
107
-
108
- if ( ! isWin ( ) ) {
109
- mochaDeps . push ( { name : "mochawesome" , version : "~3.1.2" } ) ;
110
- } else {
111
- mochaDeps . push ( { name : "mocha-junit-reporter" , version : "~1.18.0" } ) ;
112
- mochaDeps . push ( { name : "mocha-multi" , version : "~1.0.1" } ) ;
113
- }
107
+ { name : "mocha-junit-reporter" , version : "~1.18.0" } ,
108
+ { name : "mocha-multi" , version : "~1.0.1" }
109
+ ] ;
114
110
115
111
return mochaDeps ;
116
112
}
@@ -286,18 +282,15 @@ const run = async () => {
286
282
287
283
const samplesFilePostfix = "sample.e2e-spec" ;
288
284
289
- const includeMochawesomeReport = ! isWin ( ) && template . testingFramwork === mocha ? `${ mochawesome } .` : "" ;
285
+ // const includeMochawesomeReport = !isWin() && template.testingFramwork === mocha ? `${mochawesome}.` : "";
286
+ const includeMochawesomeReport = `${ mochawesome } .` ;
290
287
copy ( resolve ( e2eSamplesFolder , `${ template . projectType } .${ template . testingFramwork } .${ samplesFilePostfix } .${ includeMochawesomeReport } ${ template . fileExt } ` ) , resolve ( sampleTestsProjectFolderPath , `${ samplesFilePostfix } .${ template . fileExt } ` ) ) ;
291
288
copy ( resolve ( e2eSamplesFolder , `${ template . testingFramwork } .setup.${ includeMochawesomeReport } ${ template . fileExt } ` ) , resolve ( sampleTestsProjectFolderPath , `setup.${ template . fileExt } ` ) ) ;
292
289
293
290
copy ( resolve ( basicSampleTestsPluginFolderPath , "config" ) , resolve ( sampleTestsProjectFolderPath , "config" ) ) ;
294
291
295
- if ( isWin ( ) && template . testingFramwork === mocha ) {
296
- copy ( resolve ( basicSampleTestsPluginFolderPath , "mocha.win.opts" ) , resolve ( sampleTestsProjectFolderPath , "config" , `${ template . testingFramwork } .opts` ) ) ;
297
- } else {
298
- const settingsFile = template . testingFramwork === jasmine ? `${ template . testingFramwork } .json` : `${ template . testingFramwork } .opts` ;
299
- copy ( resolve ( basicSampleTestsPluginFolderPath , settingsFile ) , resolve ( sampleTestsProjectFolderPath , "config" , settingsFile ) ) ;
300
- }
292
+ const settingsFile = template . testingFramwork === jasmine ? `${ template . testingFramwork } .json` : `${ template . testingFramwork } .opts` ;
293
+ copy ( resolve ( basicSampleTestsPluginFolderPath , settingsFile ) , resolve ( sampleTestsProjectFolderPath , "config" , settingsFile ) ) ;
301
294
}
302
295
303
296
updatePackageJsonDependencies ( packageJson , PROJECT_TYPE , TESTING_FRAMEWORK ) ;
0 commit comments