Adding test support for ember apps that depend on @css-blocks/ember-app.
We introduce a test-support method called setupCSSBlocksTest that's responsible for setting up the test infrastructure.
This involves extending the -css-blocks service and overriding the class names omitted by the service to include fake classNames for all the elements.
This method also exposes the CSSBlocksTestService itself via this.cssBlocks that has a single API called getBlock that can then be queried for these fake classNames.
For this API to function, we generate css-blocks-test-support-data during build that the testService can talk to.
Resolves #480
Adding test support for ember apps that depend on @css-blocks/ember-app.
We introduce a test-support method called
setupCSSBlocksTest
that's responsible for setting up the test infrastructure.-css-blocks
service and overriding the class names omitted by the service to include fake classNames for all the elements.this.cssBlocks
that has a single API calledgetBlock
that can then be queried for these fake classNames.For this API to function, we generate
css-blocks-test-support-data
during build that the testService can talk to.