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.
1 parent 4a6e76c commit c00cd32Copy full SHA for c00cd32
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