File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,10 @@ class TestInitCommand implements ICommand {
93
93
await this . $pluginsService . add ( 'nativescript-unit-test-runner' , this . $projectData ) ;
94
94
95
95
const testsDir = path . join ( this . $projectData . appDirectoryPath , 'tests' ) ;
96
+ const relativeTestsDir = path . relative ( this . $projectData . projectDir , testsDir ) ;
96
97
let shouldCreateSampleTests = true ;
97
98
if ( this . $fs . exists ( testsDir ) ) {
98
- this . $logger . info ( 'app/tests/ directory already exists, will not create an example test project.' ) ;
99
+ this . $logger . info ( ` ${ relativeTestsDir } directory already exists, will not create an example test project.` ) ;
99
100
shouldCreateSampleTests = false ;
100
101
}
101
102
@@ -113,9 +114,9 @@ class TestInitCommand implements ICommand {
113
114
114
115
if ( shouldCreateSampleTests && this . $fs . exists ( exampleFilePath ) ) {
115
116
this . $fs . copyFile ( exampleFilePath , path . join ( testsDir , 'example.js' ) ) ;
116
- this . $logger . info ( ' \nExample test file created in app/tests/' . yellow ) ;
117
+ this . $logger . info ( ` \nExample test file created in ${ relativeTestsDir } ` . yellow ) ;
117
118
} else {
118
- this . $logger . info ( ' \nPlace your test files under app/tests/' . yellow ) ;
119
+ this . $logger . info ( ` \nPlace your test files under ${ relativeTestsDir } ` . yellow ) ;
119
120
}
120
121
121
122
this . $logger . info ( 'Run your tests using the "$ tns test <platform>" command.' . yellow ) ;
You can’t perform that action at this time.
0 commit comments