aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/utils.test.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix context popup error (#17398)wxiaoguang2021-10-221-1/+19
| | | * Fix context popup error
* Unregister non-matching serviceworkers (#15834)silverwind2021-05-121-1/+40
| | | | | | | | | | | | | | | * Unregister non-matching serviceworkers With the addition of the /assets url, users who visited a previous version of the site now may have two active service workers, one with the old scope `/` and one with scope `/assets`. This check for serviceworkers that do not match the current script path and unregisters them. Also included is a small refactor to publicpath.js which was simplified because AssetUrlPrefix is always present now. Also it makes use of the new joinPaths helper too. Fixes: https://github.com/go-gitea/gitea/pull/15823
* Add frontend testing, require node 12 (#15315)silverwind2021-04-081-0/+29
- Add basic frontend unit testing infrastructure using jest in ESM mode - Rename 'make test' to 'make test-backend' - Introduce 'make test-frontend' and 'make test' that runs both - Bump Node.js requirement to v12. v10 will be EOL in less than a month. - Convert all build-related JS files to ESM. I opted to run frontend tests run as part of the compliance pipeline because they complete fast and are not platform-specific like the golang tests.