Skip to content

Commit 822bfdb

Browse files
author
Vladimir Enchev
committed
tests properly excluded on prepare
1 parent a749b92 commit 822bfdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/platform-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ export class PlatformService implements IPlatformService {
258258
let sourceFiles = this.$fs.enumerateFilesInDirectorySync(appSourceDirectoryPath, null, { includeEmptyDirectories: true });
259259

260260
if (this.$options.release) {
261-
sourceFiles = sourceFiles.filter(source => source !== 'tests');
261+
let testsFolderPath = path.join(appSourceDirectoryPath, 'tests');
262+
sourceFiles = sourceFiles.filter(source => source.indexOf(testsFolderPath) === -1);
262263
}
263264

264265
let hasTnsModulesInAppFolder = this.$fs.exists(path.join(appSourceDirectoryPath, constants.TNS_MODULES_FOLDER_NAME)).wait();

0 commit comments

Comments
 (0)