rocket-science icon indicating copy to clipboard operation
rocket-science copied to clipboard

Testing for Component Generation

Open joshhedstrom opened this issue 4 years ago • 0 comments

We could probably use some kind of test to see if our component generator is broken as well. I think this may be specifically a test for the inquirer logic in rocket-science/src/util/cli/generateComponent/index.ts

Failure Scenario To Test Against:

1. npm run generate-component

2. user fills out inquirer prompts (all potential paths)

3. the newly generated component files are made

4. when the newly generated component is rendered, there is a failure that crashes the app

cc: @ahoward2 @joshhedstrom

I'm going to just create a new issue for this and then I can work on it.

Originally posted by @joshhedstrom in https://github.com/rocket-science-core/rocket-science/issues/10#issuecomment-950046455

joshhedstrom avatar Oct 23 '21 03:10 joshhedstrom