Skip to content

Commit

Permalink
test: refactor smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Nov 11, 2023
1 parent 1d499ab commit ca0ddaa
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('@jnxplus/nx-gradle spring-boot smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset empty --nxCloud false',
'npx create-nx-gradle-workspace@latest test --preset spring-boot',
{
cwd: smokeDirectory,
env: process.env,
Expand All @@ -52,13 +52,6 @@ describe('@jnxplus/nx-gradle spring-boot smoke', () => {

execSync('git init', execSyncOptions());

execSync('npm i --save-dev @jnxplus/nx-gradle', execSyncOptions());

execSync(
'npx nx generate @jnxplus/nx-gradle:init --preset spring-boot',
execSyncOptions(),
);

execSync(
`npx nx g @jnxplus/nx-gradle:application ${testApp} --framework spring-boot`,
execSyncOptions(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('@jnxplus/nx-maven micronaut smoke', () => {

it('should work', async () => {
execSync(
'npx create-nx-workspace@latest test --preset empty --nxCloud false',
'npx create-nx-maven-workspace@latest test --dependencyManagement micronaut-parent-pom',
{
cwd: smokeDirectory,
env: process.env,
Expand All @@ -52,13 +52,6 @@ describe('@jnxplus/nx-maven micronaut smoke', () => {

execSync('git init', execSyncOptions());

execSync('npm i --save-dev @jnxplus/nx-maven', execSyncOptions());

execSync(
'npx nx generate @jnxplus/nx-maven:init --dependencyManagement micronaut-parent-pom',
execSyncOptions(),
);

execSync(
`npx nx g @jnxplus/nx-maven:application ${testApp} --framework micronaut`,
execSyncOptions(),
Expand Down

0 comments on commit ca0ddaa

Please sign in to comment.