0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/regression/site
Hannah Wolfe 49f20820ef
Fixed & unskipped subdirectory tests w/ new boot
refs: f1be3418d9

- Since I refactored the boot process & subsequently the test tools, I have been hitting an issue where subdirectory tests don't work if the app has already been started without a subdirectory
- Turns out it's due to the rootApp getting cached, and not replaced no matter what you do, even though if you debug it _looks_ like it's been replaced
- This makes sense as the rootApp is in a separate file and therefore subject to the node module cache and we're using const everywhere
- Therefore, I have added a single line to the test utils to destroy this cache for this file, and the tests now work perfectly
- Next: refactor the test utilities some more to make all this much, much more straightforward and easy to understand
2021-05-26 14:31:21 +01:00
..
intergration-web-site Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
dynamic_routing_spec.js Removed ancient paged routing tests 2021-05-21 20:09:42 +01:00
frontend_spec.js Fixed & unskipped subdirectory tests w/ new boot 2021-05-26 14:31:21 +01:00
parent_app_vhosts_spec.js Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
url_service_spec.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00