These are chat archives for canjs/canjs

Sep 2018
Guido Smeets
Sep 15 2018 08:41
I am using mocha, but the principles are the same I reckon
I've made a few helper functions to easily render a component. The only tricky part is when you have fixtures for your data, which are collected async. So you need to add some promise to your viewmodels to ensure that they're loaded. I've done that generically for all my "functional" components.
Kevin Phillips
Sep 15 2018 19:04
@abalmush can you post the error you're seeing?
Andrei Balmus
Sep 15 2018 19:07
Hi @phillipskevin ok sure I will post it later, today.
Kevin Phillips
Sep 15 2018 19:08
Andrei Balmus
Sep 15 2018 20:11
I configured it from scratch, and I’m gettin another error:
Screen Shot 2018-09-15 at 11.09.21 PM.png
and this is the component it self
Screen Shot 2018-09-15 at 11.11.34 PM.png
that looks like something different, before it was that Jest didn’t see component initialization
I will try to reproduce later