@@ -73,18 +73,15 @@ class ProjectIntegrationTest {
7373 const fs : IFileSystem = this . testInjector . resolve ( "fs" ) ;
7474 const projectDir = path . join ( tempFolder , projectName ) ;
7575 const appDirectoryPath = path . join ( projectDir , "app" ) ;
76- const platformsDirectoryPath = path . join ( projectDir , "platforms" ) ;
7776 const tnsProjectFilePath = path . join ( projectDir , "package.json" ) ;
7877 const tnsModulesPath = path . join ( projectDir , constants . NODE_MODULES_FOLDER_NAME , constants . TNS_CORE_MODULES_NAME ) ;
7978 const packageJsonContent = fs . readJson ( tnsProjectFilePath ) ;
8079
8180 assert . isTrue ( fs . exists ( appDirectoryPath ) ) ;
82- assert . isTrue ( fs . exists ( platformsDirectoryPath ) ) ;
8381 assert . isTrue ( fs . exists ( tnsProjectFilePath ) ) ;
8482 assert . isTrue ( fs . exists ( tnsModulesPath ) ) ;
8583
8684 assert . isFalse ( fs . isEmptyDir ( appDirectoryPath ) ) ;
87- assert . isTrue ( fs . isEmptyDir ( platformsDirectoryPath ) ) ;
8885
8986 const actualAppId = packageJsonContent [ "nativescript" ] . id ;
9087 const expectedAppId = appId ;
@@ -95,18 +92,6 @@ class ProjectIntegrationTest {
9592
9693 const sourceDir = projectSourceDirectory ;
9794
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-
11095 // assert dependencies and devDependencies are copied from template to real project
11196 const sourcePackageJsonContent = fs . readJson ( path . join ( sourceDir , "package.json" ) ) ;
11297 const missingDeps = _ . difference ( _ . keys ( sourcePackageJsonContent . dependencies ) , _ . keys ( packageJsonContent . dependencies ) ) ;
0 commit comments