Skip to content

Commit

Permalink
test: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Jul 11, 2023
1 parent a339be5 commit 44acb9f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
32 changes: 0 additions & 32 deletions packages/internal/testing/src/lib/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,35 +280,3 @@ export function addJVMMemory() {
);
fs.writeFileSync(gradlePropertiesPath, updatedFileContent);
}

export function removeGradlePluginGroovyDsl() {
//1
const gradlePropertiesPath = path.join(tmpProjPath(), 'gradle.properties');
const gradlePropertiesContent = fs.readFileSync(
gradlePropertiesPath,
'utf-8'
);
const updatedFileContent = gradlePropertiesContent.replace(
/jnxplusGradlePluginVersion=.*/,
''
);
fs.writeFileSync(gradlePropertiesPath, updatedFileContent);

//2
const buildGradlePath = path.join(tmpProjPath(), 'build.gradle');
const buildGradleContent = fs.readFileSync(buildGradlePath, 'utf-8');
const updatedFileContent2 = buildGradleContent.replace(
/.*io.github.khalilou88.jnxplus.*/,
''
);
fs.writeFileSync(buildGradlePath, updatedFileContent2);

//3
const settingsGradlePath = path.join(tmpProjPath(), 'settings.gradle');
const settingsGradleContent = fs.readFileSync(settingsGradlePath, 'utf-8');
const updatedFileContent3 = settingsGradleContent.replace(
/.*io.github.khalilou88.jnxplus.*/,
''
);
fs.writeFileSync(settingsGradlePath, updatedFileContent3);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
patchPackageJson,
patchRootPackageJson,
promisifiedTreeKill,
removeGradlePluginGroovyDsl,
removeTmpFromGitignore,
runNxCommandUntil,
runNxNewCommand,
Expand Down Expand Up @@ -88,8 +87,6 @@ describe('nx-boot-gradle e2e', () => {
`generate @jnxplus/nx-boot-gradle:init --rootProjectName ${rootProjectName}`
);

removeGradlePluginGroovyDsl();

if (isCI) {
removeTmpFromGitignore();
}
Expand Down

0 comments on commit 44acb9f

Please sign in to comment.