Cache home location and weather across page navigation
ci-cd / verify (push) Successful in 6s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-05 11:08:11 +08:00
parent 42aea10101
commit f0ee63e642
5 changed files with 205 additions and 57 deletions
+3
View File
@@ -5,6 +5,9 @@ const path = require("node:path");
const apiPath = require.resolve("../pets-fe/utils/api");
function page(name, secure, wx = {}) {
// Each test represents a fresh app session; page navigation within a test
// still shares the environment module.
delete require.cache[require.resolve("../pets-fe/utils/environment")];
global.wx = {
getStorageSync: () => [],
setStorageSync: () => {},