cogizmo / sajax-content

Custom Element that transcludes a document (in whole or part) into the current document at its current location.
ISC License
0 stars 1 forks source link

Add test suites #20

Open FuzzicalLogic opened 5 years ago

FuzzicalLogic commented 5 years ago

Cogizmo, itself is fully tested, but none of the components that utilize Cogizmo are. This really has to be done before a release to 1.0.

Test suites required:

Unit Tests Behavior Tests Basic Integration Tests Browser Compatibility Tests

FuzzicalLogic commented 5 years ago

The current impairment to getting these tests completed has to do with how NPM handles dependencies. Since dependencies are installed in a subdirectory (node_modules), this conflicts with testing of module-based components. The core issue is that the convention is to place webcomponents side-by-side. Modules use static paths, in general, and as a result, by convention the imports must look like so (for component dependencies, specifically:

import {Cogizmo} from '../Cogizmo.mjs';

The only solution I can think of requires copying the files into flat setup within the test environments during the packaging process.