mirror of https://github.com/lxndrblz/anatole.git

google-labs-jules[bot]
2 hours ago cfd0bc2978bcd175d7007f0668a053167a1b6fbb
test: add comprehensive test suite for anatole-theme-switcher.js

- Add jest and jest-environment-jsdom for testing
- Create assets/js/anatole-theme-switcher.test.js covering all edge cases
- Achieve 100% statement and branch coverage for theme switcher

Co-authored-by: KarelZe <12801659+KarelZe@users.noreply.github.com>
2 files modified
2 files added
5854 ■■■■■ changed files
assets/js/anatole-theme-switcher.test.js 151 ●●●●● diff | view | raw | blame | history
jest.config.js 3 ●●●●● diff | view | raw | blame | history
package-lock.json 5696 ●●●●● diff | view | raw | blame | history
package.json 4 ●●●●● diff | view | raw | blame | history