diff --git a/packages/cli/src/commands/init/__tests__/__snapshots__/editTemplate.test.ts.snap b/packages/cli/src/commands/init/__tests__/__snapshots__/editTemplate.test.ts.snap index d25fc014bd..fb870eae21 100644 --- a/packages/cli/src/commands/init/__tests__/__snapshots__/editTemplate.test.ts.snap +++ b/packages/cli/src/commands/init/__tests__/__snapshots__/editTemplate.test.ts.snap @@ -51,7 +51,7 @@ exports[`should edit template 3`] = ` - First value + Second value -@@ -4,14 +4,14 @@ +@@ -6,17 +6,14 @@ \\"/android/com\\", - \\"/android/com/placeholdername\\", - \\"/android/com/placeholdername/Main.java\\", @@ -69,12 +69,12 @@ exports[`should edit template 3`] = ` - \\"/ios/PlaceholderName-tvOS/.gitkeep\\", - \\"/ios/PlaceholderNameTests\\", - \\"/ios/PlaceholderNameTests/.gitkeep\\", -+ \\"/ios/ProjectName\\", + \\"/ios/ProjectName\\", + \\"/ios/ProjectName/AppDelegate.m\\", + \\"/ios/ProjectName/project.pbxproj\\", -+ \\"/ios/ProjectName-tvOS\\", + \\"/ios/ProjectName-tvOS\\", + \\"/ios/ProjectName-tvOS/.gitkeep\\", -+ \\"/ios/ProjectNameTests\\", + \\"/ios/ProjectNameTests\\", + \\"/ios/ProjectNameTests/.gitkeep\\", \\"/node_modules\\"," `; diff --git a/packages/cli/src/commands/init/__tests__/editTemplate.test.ts b/packages/cli/src/commands/init/__tests__/editTemplate.test.ts index 1fa9767fef..6a5f6e5147 100644 --- a/packages/cli/src/commands/init/__tests__/editTemplate.test.ts +++ b/packages/cli/src/commands/init/__tests__/editTemplate.test.ts @@ -210,14 +210,13 @@ describe('replacePlaceholderWithPackageName', () => { placeholderTitle: 'Test', packageName: PACKAGE_NAME, }); - const [prefix, ...segments] = PACKAGE_NAME.split('.'); const mainActivityFile = fs.readFileSync( path.resolve( testPath, 'android', - prefix, - segments.join('.'), + 'com', + PACKAGE_NAME, 'MainActivity.java', ), 'utf8',