just fyi, I ran into facebook/jest#227, so I added <rootDir> to collectCoverageOnlyFrom and testDirectoryName in components jest configuration. I will PR this alongside reduct/component#13, but as a seperate commit.
... I'm seeing all this test stuff from a php/java perspective where this would be more or less a no-go. And actually I like having tests and testables separated - but maybe that's just a matter of familiarization
and don't get me wrong: I'm not aiming to phpize JS here :D
But I'm seeing the advantages of the testing practices there
Jap, true. I did separate them in Java land as well. But have to say that I do not see the point why this should not be a best practice in Java and PHP as well. The JAR/PHAR bundling could remove the tests before the actual packaging.
Cool. Yap, should have a quick talk about the matrix :)
@Inkdpixels@grebaldi Implemented a first draft of a possible new API. Stripped everything down to the core feature set of the Assembler: https://github.com/reduct/assembler/tree/refactoring/api - The core functionality (registering and instantiating components) is already implemented. Will port the rest of the code over if you think this is a suitable and elegant API surface. Hope you like it :)
The branch contains the test stack (mocha, chai and jsdom) as well.