@@ -13,7 +13,7 @@ const { basename, resolve } = require("path");
1313const appRootPath = require ( 'app-root-path' ) . toString ( ) ;
1414
1515const inquirer = require ( "inquirer" ) ;
16- const chalk = require ( "chalk" ) ;
16+ // const chalk = require("chalk");
1717// const figlet = require("figlet");
1818
1919const jasmine = "jasmine" ;
@@ -83,29 +83,27 @@ const copy = (src, dest) => {
8383}
8484
8585const getDevDependencies = ( frameworkType ) => {
86- const tesstingFrameworkDeps = new Map ( ) ;
87-
88- tesstingFrameworkDeps . set ( jasmine , [
89- { name : "jasmine" , version : "latest " } ,
90- { name : "jasmine-core" , version : "latest " } ,
91- { name : "jasmine-spec-reporter" , version : "latest " } ,
92- { name : "@types/jasmine" , version : "latest " } ,
93- { name : "@types/node" , version : "latest " } ,
86+ const testingFrameworkDeps = new Map ( ) ;
87+
88+ testingFrameworkDeps . set ( jasmine , [
89+ { name : "jasmine" , version : "~3.3.1 " } ,
90+ { name : "jasmine-core" , version : "~3.3.0 " } ,
91+ { name : "jasmine-spec-reporter" , version : "~4.2.1 " } ,
92+ { name : "@types/jasmine" , version : "~3.3.4 " } ,
93+ { name : "@types/node" , version : "~10.12.18 " } ,
9494 ] ) ;
9595
96- tesstingFrameworkDeps . set ( mocha , [
97- { name : "mocha" , version : "latest " } ,
98- { name : "mocha-junit-reporter" , version : "latest " } ,
99- { name : "mocha-multi" , version : "latest " } ,
100- { name : "@types/mocha" , version : "latest " } ,
101- { name : "@types/chai" , version : "latest " } ,
102- { name : "@types/node" , version : "latest " } ,
96+ testingFrameworkDeps . set ( mocha , [
97+ { name : "mocha" , version : "~5.2.0 " } ,
98+ { name : "mocha-junit-reporter" , version : "~1.18.0 " } ,
99+ { name : "mocha-multi" , version : "~1.0.1 " } ,
100+ { name : "@types/mocha" , version : "~5.2.5 " } ,
101+ { name : "@types/chai" , version : "~4.1.7 " } ,
102+ { name : "@types/node" , version : "~10.12.18 " } ,
103103 ] ) ;
104104
105- tesstingFrameworkDeps . set ( js , [ ] ) ;
106-
107- return tesstingFrameworkDeps . get ( frameworkType ) ;
108-
105+ testingFrameworkDeps . set ( js , [ ] ) ;
106+ return testingFrameworkDeps . get ( frameworkType ) ;
109107}
110108
111109const configureDevDependencies = ( packageJson , frameworkType ) => {
@@ -131,7 +129,7 @@ const updatePackageJsonDependencies = (packageJson, projectType, testingFramewor
131129
132130 const runner = ( testingFrameworkType === none ) ? undefined : ( testingFrameworkType === mocha ? mochaCommand : jasmineCommand ) ;
133131 const executeTestsCommand = projectType !== sharedNg ? "e2e" : "e2e-appium" ;
134- const watchTestsCommandName = executeTestsCommand + "-watch" ; // = "tsc -p e2e --watch";"
132+ const watchTestsCommandName = executeTestsCommand + "-watch" ;
135133 const watchTestsCommand = "tsc -p e2e --watch" ;
136134
137135 if ( ! packageJson . scripts [ executeTestsCommand ] && runner ) {
0 commit comments