@@ -13,7 +13,7 @@ const { basename, resolve } = require("path");
13
13
const appRootPath = require ( 'app-root-path' ) . toString ( ) ;
14
14
15
15
const inquirer = require ( "inquirer" ) ;
16
- const chalk = require ( "chalk" ) ;
16
+ // const chalk = require("chalk");
17
17
// const figlet = require("figlet");
18
18
19
19
const jasmine = "jasmine" ;
@@ -83,29 +83,27 @@ const copy = (src, dest) => {
83
83
}
84
84
85
85
const 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 " } ,
94
94
] ) ;
95
95
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 " } ,
103
103
] ) ;
104
104
105
- tesstingFrameworkDeps . set ( js , [ ] ) ;
106
-
107
- return tesstingFrameworkDeps . get ( frameworkType ) ;
108
-
105
+ testingFrameworkDeps . set ( js , [ ] ) ;
106
+ return testingFrameworkDeps . get ( frameworkType ) ;
109
107
}
110
108
111
109
const configureDevDependencies = ( packageJson , frameworkType ) => {
@@ -131,7 +129,7 @@ const updatePackageJsonDependencies = (packageJson, projectType, testingFramewor
131
129
132
130
const runner = ( testingFrameworkType === none ) ? undefined : ( testingFrameworkType === mocha ? mochaCommand : jasmineCommand ) ;
133
131
const executeTestsCommand = projectType !== sharedNg ? "e2e" : "e2e-appium" ;
134
- const watchTestsCommandName = executeTestsCommand + "-watch" ; // = "tsc -p e2e --watch";"
132
+ const watchTestsCommandName = executeTestsCommand + "-watch" ;
135
133
const watchTestsCommand = "tsc -p e2e --watch" ;
136
134
137
135
if ( ! packageJson . scripts [ executeTestsCommand ] && runner ) {
0 commit comments