petehunt / generator-react-library

Yeoman generator for React components
Apache License 2.0
17 stars 5 forks source link

Make tests pass #11

Open chenglou opened 10 years ago

chenglou commented 10 years ago

@sdawson I tried to make the test work here. The small discussion is here. Either I suck or the libs were buggy. If you encounter the same problem as I did, then maybe we're overkilling this.

(I'll assume you read that last post) Frankly I'd rather use Yeoman's built-in testing methods, since they will naturally work in the future for smart options. We could slightly dirty this (which is basically the root of the whole problem) by passing a callback exclusively for the test to make it work. I didn't want to do that and ended up digging myself into a hole lol.

sdawson commented 10 years ago

I'll give nexpect a shot too, see if I can come up with anything functional and let you know how it goes...