Skip to content

Commit

Permalink
test adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 27, 2024
1 parent 6f52263 commit af86680
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions generators/migrate/generator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { beforeAll, describe, expect, it } from 'vitest';
import simpleGit from 'simple-git';
import { escapeRegExp } from 'lodash-es';

import { basicHelpers as helpers } from 'generator-jhipster/testing';
import { basicHelpers as helpers, runResult } from 'generator-jhipster/testing';

/**
* @return {import('simple-git').SimpleGit}
Expand All @@ -17,17 +17,19 @@ const SUB_GENERATOR_NAMESPACE = `jhipster-migrate:${SUB_GENERATOR}`;
describe('SubGenerator migrate of migrate JHipster blueprint', () => {
describe('default application', () => {
beforeAll(async () => {
const context = await helpers
await helpers
.runJHipster('app')
.withOptions({
skipGit: false,
})
.withJHipsterConfig({
baseName: 'upgradeTest',
skipCommitHook: true,
skipClient: true,
skipServer: true,
})
.withParentBlueprintLookup();
});

await context
await runResult
.create(SUB_GENERATOR_NAMESPACE)
.withOptions({
sourceVersion: 'bundled',
Expand Down Expand Up @@ -60,7 +62,7 @@ describe('SubGenerator migrate of migrate JHipster blueprint', () => {
apply updated prettier to actual application
apply updated prettier to source application
migration application generated with JHipster bundled (source)
initial"
Initial version of upgradeTest generated by generator-jhipster@undefined"
`);
},
);
Expand Down

0 comments on commit af86680

Please sign in to comment.