We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b3be34 commit 4c4c537Copy full SHA for 4c4c537
test/app.test.js
@@ -2,10 +2,14 @@ const helpers = require('yeoman-test');
2
const assert = require('yeoman-assert');
3
const path = require('path');
4
5
-describe('generator-react-component-dev-kit', () => {
+describe('default', () => {
6
it('should create expected files', () => {
7
return helpers.run(path.join(__dirname, '../generators/app'))
8
- .withPrompts({ name: 'test-component' })
+ .withPrompts({
9
+ name: 'test-component',
10
+ path: './' ,
11
+ componentType: '0',
12
+ })
13
.then((dir) => {
14
assert.file([
15
'test-component/webpack.config.common.js',
@@ -16,6 +20,6 @@ describe('generator-react-component-dev-kit', () => {
16
20
'test-component/src/index.ts',
17
21
'test-component/package.json',
18
22
]);
19
- });
23
24
});
25
0 commit comments