aerogear / create-graphql

Command-line utility to build production-ready servers with GraphQL.
MIT License
440 stars 38 forks source link

add test for mongoose schema, see #17 #28

Closed sibelius closed 7 years ago

codecov-io commented 7 years ago

Current coverage is 74.86% (diff: 100%)

Merging #28 into master will increase coverage by 19.91%

@@             master        #28   diff @@
==========================================
  Files            13         13          
  Lines           182        183     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            100        137    +37   
+ Misses           82         46    -36   
  Partials          0          0          

Powered by Codecov. Last update bab9c01...84b2356

lucasbento commented 7 years ago

@sibelius: yeoman seems to have some sort of cache when it runs the generator so I separated the use of the same typeGenerator with helper.run for each test.

Also, I moved the fixtures to the root of the generator package so they can be used by other tests as well.

What do you think?