I understand my contributions may be rejected for any reason
I understand my contributions are for the benefit of Derpibooru and/or the Philomena software
I understand my contributions are licensed under the GNU AGPLv3
[x] I understand all of the above
The goal of this PR to achieve unit tests coverage in the utility JavaScript files of the application in preparation for migration to TypeScript. This is to ensure no existing functionality will be broken by this process.
Running tests has also been added to CI, however, coverage requirements are only enforced inside the assets/js/utils folder. Once coverage reaches a certain threshold it may be worth raising the global minimum percentage, but for now it should be kept at 0 to allow gradual introduction of unit tests.
Before you begin
I understand my contributions may be rejected for any reason
I understand my contributions are for the benefit of Derpibooru and/or the Philomena software
I understand my contributions are licensed under the GNU AGPLv3
[x] I understand all of the above
The goal of this PR to achieve unit tests coverage in the utility JavaScript files of the application in preparation for migration to TypeScript. This is to ensure no existing functionality will be broken by this process.
Running tests has also been added to CI, however, coverage requirements are only enforced inside the
assets/js/utils
folder. Once coverage reaches a certain threshold it may be worth raising the global minimum percentage, but for now it should be kept at 0 to allow gradual introduction of unit tests.