@@ -73,18 +73,15 @@ class ProjectIntegrationTest {
73
73
const fs : IFileSystem = this . testInjector . resolve ( "fs" ) ;
74
74
const projectDir = path . join ( tempFolder , projectName ) ;
75
75
const appDirectoryPath = path . join ( projectDir , "app" ) ;
76
- const platformsDirectoryPath = path . join ( projectDir , "platforms" ) ;
77
76
const tnsProjectFilePath = path . join ( projectDir , "package.json" ) ;
78
77
const tnsModulesPath = path . join ( projectDir , constants . NODE_MODULES_FOLDER_NAME , constants . TNS_CORE_MODULES_NAME ) ;
79
78
const packageJsonContent = fs . readJson ( tnsProjectFilePath ) ;
80
79
81
80
assert . isTrue ( fs . exists ( appDirectoryPath ) ) ;
82
- assert . isTrue ( fs . exists ( platformsDirectoryPath ) ) ;
83
81
assert . isTrue ( fs . exists ( tnsProjectFilePath ) ) ;
84
82
assert . isTrue ( fs . exists ( tnsModulesPath ) ) ;
85
83
86
84
assert . isFalse ( fs . isEmptyDir ( appDirectoryPath ) ) ;
87
- assert . isTrue ( fs . isEmptyDir ( platformsDirectoryPath ) ) ;
88
85
89
86
const actualAppId = packageJsonContent [ "nativescript" ] . id ;
90
87
const expectedAppId = appId ;
@@ -95,18 +92,6 @@ class ProjectIntegrationTest {
95
92
96
93
const sourceDir = projectSourceDirectory ;
97
94
98
- // Hidden files (starting with dots ".") are not copied.
99
- const expectedFiles = fs . enumerateFilesInDirectorySync ( sourceDir , ( file , stat ) => stat . isDirectory ( ) || ! _ . startsWith ( path . basename ( file ) , "." ) ) ;
100
- const actualFiles = fs . enumerateFilesInDirectorySync ( appDirectoryPath ) ;
101
-
102
- assert . isTrue ( actualFiles . length >= expectedFiles . length , "Files in created project must be at least as files in app dir." ) ;
103
-
104
- _ . each ( expectedFiles , file => {
105
- const relativeToProjectDir = helpers . getRelativeToRootPath ( sourceDir , file ) ;
106
- const filePathInApp = path . join ( appDirectoryPath , relativeToProjectDir ) ;
107
- assert . isTrue ( fs . exists ( filePathInApp ) , `File ${ filePathInApp } does not exist.` ) ;
108
- } ) ;
109
-
110
95
// assert dependencies and devDependencies are copied from template to real project
111
96
const sourcePackageJsonContent = fs . readJson ( path . join ( sourceDir , "package.json" ) ) ;
112
97
const missingDeps = _ . difference ( _ . keys ( sourcePackageJsonContent . dependencies ) , _ . keys ( packageJsonContent . dependencies ) ) ;
0 commit comments