Closed jehoshua02 closed 9 years ago
@nhunzaker recommended Karma. I like the idea of testing in real browsers. He gave me this link: https://github.com/nhunzaker/webpack-boilerplate
Got this working: https://github.com/jehoshua02/react-scaffold/pull/11
But it doesn't work with coverage.
Closing in favor of smaller more focused issues.
My TDD pain points:
Jest + React + Webpack preprocessing: I want to process files the same way I do during build right?Resolved using babel-jest. Compiles jsx in tests and loaded modules.jest.dontMock('module/path')
.--coverage
option is throwing a big ugly error. Issue reported with babel-jest and jest-cli. Coverage is output to the console so I'm happy, but I wish I could disable whatever is throwing the error (I'm assuming whatever is writing to disk).