@@ -109,7 +109,7 @@ module.exports = function(grunt) {
109
109
110
110
var nodeTestEnv = JSON . parse ( JSON . stringify ( process . env ) ) ;
111
111
nodeTestEnv . NODE_PATH = localCfg . outTnsCoreModules ;
112
- localCfg . nodeTestsDir = path . join ( localCfg . outDir , 'node -tests' ) ;
112
+ localCfg . nodeTestsDir = path . join ( localCfg . outDir , 'unit -tests' ) ;
113
113
localCfg . mainPackageContent = grunt . file . readJSON ( localCfg . packageJsonFilePath ) ;
114
114
localCfg . packageVersion = getPackageVersion ( localCfg . packageJsonFilePath ) ;
115
115
localCfg . commitSHA = getCommitSha ( ) ;
@@ -202,7 +202,7 @@ module.exports = function(grunt) {
202
202
src : [
203
203
"**/*.d.ts" ,
204
204
//Exclude the d.ts files in the apps folder - these are part of the apps and are already packed there!
205
- "!node -tests/**" ,
205
+ "!unit -tests/**" ,
206
206
"!org.nativescript.widgets.d.ts" ,
207
207
"!android17.d.ts" ,
208
208
"!**/*.android.d.ts" ,
@@ -255,7 +255,7 @@ module.exports = function(grunt) {
255
255
'**/*' ,
256
256
'!*.md' ,
257
257
'!node_modules/**/*' ,
258
- '!node -tests/**/*' ,
258
+ '!unit -tests/**/*' ,
259
259
] ,
260
260
cwd : localCfg . outDir ,
261
261
dest : "<%= grunt.option('path') %>/node_modules/tns-core-modules/" ,
@@ -279,7 +279,7 @@ module.exports = function(grunt) {
279
279
} ,
280
280
compileAll : "npm run compile-all" ,
281
281
setupLinks : "npm run setup" ,
282
- compileNodeTests : "npm run compile-node-tests " ,
282
+ runUnitTests : "npm run unit-test " ,
283
283
tslint : "npm run tslint" ,
284
284
} ,
285
285
simplemocha : {
@@ -368,7 +368,7 @@ module.exports = function(grunt) {
368
368
//aliasing pack-modules for backwards compatibility
369
369
grunt . registerTask ( "pack-modules" , [
370
370
"compile-modules" ,
371
- "node-tests " ,
371
+ "run-unit-test " ,
372
372
"copy:modulesPackageDef" ,
373
373
"exec:packModules"
374
374
] ) ;
@@ -384,13 +384,9 @@ module.exports = function(grunt) {
384
384
"copy:jsLibs" ,
385
385
] ) ;
386
386
387
- grunt . registerTask ( "node-tests " , [
387
+ grunt . registerTask ( "run-unit-test " , [
388
388
"clean:nodeTests" ,
389
- "shell:compileNodeTests" ,
390
- "copy:childPackageFiles" ,
391
- "copy:jsLibs" ,
392
- "env:nodeTests" ,
393
- "exec:mochaNode" , //spawn a new process to use the new NODE_PATH
389
+ "shell:runUnitTests"
394
390
] ) ;
395
391
396
392
grunt . registerTask ( "apiref" , [
0 commit comments