-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add composing component priority. #26080
Changes from 5 commits
f498f7c
cc87268
ee899a0
d743892
f2d5b26
f1d66fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,4 +165,110 @@ describe(`generator - ${generator}`, () => { | |
}); | ||
}); | ||
}); | ||
describe('questions', () => { | ||
describe('without answers', () => { | ||
before(async () => { | ||
await helpers.run(generatorPath).withSkipWritingPriorities(); | ||
}); | ||
|
||
it('should match order', () => { | ||
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(` | ||
[ | ||
"baseName", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"applicationType", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"packageName", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"buildTool", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"reactive", | ||
"authenticationType", | ||
"serverTestFrameworks", | ||
"databaseType", | ||
"prodDatabaseType", | ||
"devDatabaseType", | ||
"cacheProvider", | ||
"enableHibernateCache", | ||
"serverSideOptions", | ||
Comment on lines
+181
to
+189
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"enableTranslation", | ||
"nativeLanguage", | ||
"languages", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"clientFramework", | ||
"clientTestFrameworks", | ||
"withAdminUi", | ||
"clientTheme", | ||
Comment on lines
+190
to
+193
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
] | ||
`); | ||
}); | ||
}); | ||
|
||
describe('with gateway, gradle and no cacheProvider', () => { | ||
before(async () => { | ||
await helpers | ||
.run(generatorPath) | ||
.withAnswers({ applicationType: 'gateway', buildTool: 'gradle', cacheProvider: 'no' }) | ||
.withSkipWritingPriorities(); | ||
}); | ||
|
||
it('should match order', () => { | ||
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(` | ||
[ | ||
"baseName", | ||
"applicationType", | ||
"packageName", | ||
"buildTool", | ||
"serverPort", | ||
"serviceDiscoveryType", | ||
"authenticationType", | ||
"serverTestFrameworks", | ||
"databaseType", | ||
"prodDatabaseType", | ||
"devDatabaseType", | ||
"cacheProvider", | ||
"enableHibernateCache", | ||
"serverSideOptions", | ||
"enableGradleEnterprise", | ||
"enableTranslation", | ||
"nativeLanguage", | ||
"languages", | ||
"clientFramework", | ||
"microfrontend", | ||
"clientTestFrameworks", | ||
"withAdminUi", | ||
"clientTheme", | ||
] | ||
`); | ||
}); | ||
}); | ||
|
||
describe('with microservice', () => { | ||
before(async () => { | ||
await helpers | ||
.run(generatorPath) | ||
.withAnswers({ applicationType: 'microservice', databaseType: 'mongodb' }) | ||
.withSkipWritingPriorities(); | ||
}); | ||
|
||
it('should match order', () => { | ||
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(` | ||
[ | ||
"baseName", | ||
"applicationType", | ||
"packageName", | ||
"buildTool", | ||
"reactive", | ||
"serverPort", | ||
"serviceDiscoveryType", | ||
"authenticationType", | ||
"feignClient", | ||
"serverTestFrameworks", | ||
"databaseType", | ||
"cacheProvider", | ||
"serverSideOptions", | ||
"enableTranslation", | ||
"nativeLanguage", | ||
"languages", | ||
"clientFramework", | ||
] | ||
`); | ||
}); | ||
}); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Locally running
npm test
, theaskedQuestion
returns undefined. Any clue?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm ci
?Requires an updated version of yeoman-test.