Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/init/language/css/init-language-css.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('init with SCSS', () => {
}

// Test regressively files are scaffolded
const files = ['./package.json', './.yo-rc.json', './src/index.js'];
const files = ['./package.json', './.yo-rc.json', './src/index.js', 'webpack.config.js'];

// eslint-disable-next-line prettier/prettier
files.forEach((file) => {
Expand Down
8 changes: 2 additions & 6 deletions test/init/language/js/init-language-js.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ describe('init with Typescript', () => {
});

it('should use typescript', async () => {
const { stdout } = await runPromptWithAnswers(
genPath,
['init'],
[`N${ENTER}`, ENTER, ENTER, `${DOWN}${DOWN}${ENTER}`, ENTER, ENTER],
);
const { stdout } = await runPromptWithAnswers(genPath, ['init'], [`N${ENTER}`, ENTER, ENTER, `${DOWN}${DOWN}${ENTER}`, ENTER]);

expect(stdout).toBeTruthy();
expect(stdout).toContain(firstPrompt);
Expand All @@ -38,7 +34,7 @@ describe('init with Typescript', () => {
}

// Test regressively files are scaffolded
const files = ['./package.json', './.yo-rc.json', './tsconfig.json', './src/index.ts'];
const files = ['./package.json', './.yo-rc.json', './tsconfig.json', './src/index.ts', 'webpack.config.js'];

// eslint-disable-next-line prettier/prettier
files.forEach((file) => {
Expand Down