Jack Wilkinson 7fe167c41f
Split tests into relevant module folders
This splits the testing suite into the separate modules as appropriate in order to improve the reliability of the testing suite as a whole and make it easier for developers to have an up to date testing suite from the core to build off of. Additionally the tests are now namespaced and some minor improvements to the PluginManager were made.

Now the PluginManager will internally treat plugin identifiers as lower case strings, only transforming them to their normalized versions when requested by methods like getPlugins() & getAllPlugins(). The idea behind this is that it provides a much simpler way to internally handle checking, especially for plugin replacement where casing could cause issues.

Replaces #576. Fixes #575.
2022-06-21 18:30:30 -06:00
..

Snowboard Framework Testing Suite

The files in this directory form the testing suite for the new Winter JavaScript framework - Snowboard. You must install all Node dependencies in order to run the testing suite:

cd tests/js
npm install

You can then run the tests by using the following command:

npm run test

Please note that the tests are run against the "built" versions of Snowboard and its plugins, in order to test the exact same functionality that would be delivered to the end user. We do this by leveraging the JSDOM library to simulate an entire HTML document.

Therefore, you must compile a new build if you make any changes and wish to run the tests:

php artisan mix:compile --package snowboard

You can also watch the framework for any changes, which will automatically run a build after a change is made. This will make development and testing in parallel much quicker:

php artisan mix:watch snowboard