We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a6e76c + c00cd32 commit 9abc806Copy full SHA for 9abc806
src/files.js
@@ -85,7 +85,7 @@ async function generateFilesFromTemplate({ name, path, templatesPath }) {
85
* @param {string} componentName
86
* @return {object} with the correct filenames
87
*/
88
-function getFileNames(fileNames, componentName) {
+function getFileNames(fileNames = [], componentName) {
89
const defaultFileNames = {
90
testFileName: `${defaultOptions.testFileName}.${componentName}`,
91
componentFileName: componentName,
0 commit comments