PebbleRoad / cobblestone

Modern static site generator
4 stars 0 forks source link

Use Cypress for component unit tests? #4

Closed kyleoliveiro closed 5 years ago

kyleoliveiro commented 5 years ago

We're currently using Cypress for app-level integration/e2e tests. However, component unit tests are handled with @vue/test-utils. We can instead use https://github.com/bahmutov/cypress-vue-unit-test for consistency.

kyleoliveiro commented 5 years ago

https://github.com/PebbleRoad/cobblestone/commit/c58ed8c9bb7777860ae3922a4af97dec4798fbeb Adds structure for Cypress-based component unit and integration tests. I'll leave @vue/test-utils in for now and leave it up to users whether to use Jest of Vue for component unit tests. Jest still comes in handy because AFAIK that's the only way to use Storyshots.

kyleoliveiro commented 5 years ago

Closed by https://github.com/PebbleRoad/cobblestone/commit/c58ed8c9bb7777860ae3922a4af97dec4798fbeb