Cache home location and weather across page navigation
This commit is contained in:
@@ -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: () => {},
|
||||
|
||||
Reference in New Issue
Block a user