Message of the day:
Making TDD easy in SilverStripe
Discuss testing in SilverStripe
basically trying to get it running in my yarn/mix project...
yeah we use jest + enzyme for testing react stuff mainly. there's also jest + ReactTestUtils in some of the older JS tests in core, but enzyme is the preferred approach going forward
looks good, thanks @kinglozzer
"needs"... after using phpunit a lot in the last weeks, I think TDD with JS is also nice. And if I can run the test suite on deployment or on checkin, it should make my application better
I’ve never written an application that really needs it, but SilverStripe admin etc uses
Try PHPUnit build-in mocking?
Maybe even something like
Director::mockRequest() but rather
FunctionalTest::withBaseURL() but more like