-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathgenerator.spec.ts
More file actions
31 lines (26 loc) · 868 Bytes
/
generator.spec.ts
File metadata and controls
31 lines (26 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { beforeAll, describe, expect, it } from 'vitest';
import { createTestHelpers, typedResult } from 'generator-jhipster/testing';
import type Generator from './generator.js';
const helpers = createTestHelpers<Generator>({
importMeta: import.meta,
defaultGenerator: 'jhipster-entity-audit:angular-audit',
});
const result = typedResult<Generator>();
describe('SubGenerator angular-audit of entity-audit JHipster blueprint', () => {
describe('run', () => {
beforeAll(async function () {
await helpers
.runDefault()
.withJHipsterConfig()
.withOptions({
ignoreNeedlesError: true,
})
.withJHipsterGenerators()
.withConfiguredBlueprint()
.withBlueprintConfig({});
});
it('should succeed', () => {
expect(result.getStateSnapshot()).toMatchSnapshot();
});
});
});