Separate parts of my site have separate sets of Javascript files, which -thrown all together- interfere with each other. In order to test everything with Jasmine, it seems I need some way to define separate sets of "assets" for different suites. Is this currently possible and if so, how?
You may want to consider, as suggested, breaking your javascript into different namespaces. One great way to make it easy to separate javascript into multiple files is by using the module pattern which uses closures and a few other neat properties of javascript to execute necessary code immediately, and contain it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With