Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Fix navigation generator #240

Merged
merged 2 commits into from
Aug 17, 2019
Merged

Fix navigation generator #240

merged 2 commits into from
Aug 17, 2019

Conversation

bryanstearns
Copy link
Member

ignite g navigation Test failed with a type error: read-pkg-up doesn't return the package; it returns an object with {package, path}. (I did bump the read-pkg-up version from 5.0.0 to 6.0.0 recently, but it's not apparent from the limited release notes that the result type changed... so maybe this has been broken for a while.)

Fixes #237.

Also added a simple test for the navigation generator. To drive the generator from the test, the generator now checks for options before asking its questions. Like the other generator tests, this one isn't exhaustive, but at least checks that the basic flow works, which'll hopefully prevent problems like this in the future.

@jamonholmgren jamonholmgren merged commit 3dc9ba5 into master Aug 17, 2019
@jamonholmgren jamonholmgren deleted the fix-navigation-generator branch August 17, 2019 00:26
infinitered-circleci pushed a commit that referenced this pull request Aug 17, 2019
## [4.6.2](v4.6.1...v4.6.2) (2019-08-17)

### Bug Fixes

* **generators:** Fix navigation generator ([#240](#240) by [@bryanstearns](https://github.com/bryanstearns)) ([3dc9ba5](3dc9ba5))
@infinitered-circleci
Copy link

🎉 This PR is included in version 4.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating navigator via command line fails with TypeError
3 participants