diff --git a/.github/workflows/generator.yml b/.github/workflows/generator.yml index 3a03c6af..34593e86 100644 --- a/.github/workflows/generator.yml +++ b/.github/workflows/generator.yml @@ -17,7 +17,7 @@ jobs: with: node-version: '12' - run: npm ci - - run: npm run pretest + - run: npm link - run: npm run test if: >- !contains(github.event.head_commit.message, '[skip ci]') && diff --git a/test/server.spec.js b/test/server.spec.js index a9a962f9..0808a4ed 100644 --- a/test/server.spec.js +++ b/test/server.spec.js @@ -5,6 +5,7 @@ const constants = require('generator-jhipster/generators/generator-constants'); const expectedFiles = require('./utils/expected-files'); const appBaseName = 'entandoPlugin'; +const mainClassName = 'EntandoPluginApp'; const { DOCKER_DIR, SERVER_MAIN_SRC_DIR, SERVER_MAIN_RES_DIR } = constants; describe('Subgenerator server of entando JHipster blueprint', () => { @@ -311,7 +312,7 @@ describe('Subgenerator server of entando JHipster blueprint', () => { it('Main application file contains Entando modification', () => { assert.fileContent( - `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/${appBaseName}App.java`, + `${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/${mainClassName}.java`, 'implements InitializingBean', ); });