mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-09 03:22:40 +00:00
fix(e2e): clear restored macOS npm cache
This commit is contained in:
@@ -797,6 +797,8 @@ printf 'preflight.umask=%s\n' "$(umask)"
|
||||
printf 'preflight.npmRoot=%s\n' "$(${guestNpm} root -g 2>/dev/null || true)"
|
||||
${guestNpm} uninstall -g openclaw >/dev/null 2>&1 || true
|
||||
rm -rf "$HOME/.openclaw"
|
||||
# Restored snapshots can contain corrupt optional-dependency tarballs that npm silently skips.
|
||||
rm -rf "$HOME/.npm/_cacache"
|
||||
rm -f /tmp/openclaw-parallels-macos-gateway.log`);
|
||||
}
|
||||
|
||||
|
||||
@@ -936,6 +936,12 @@ if (isPrlctl) {
|
||||
expect(guestTransports.match(/umask 022/g)).toHaveLength(2);
|
||||
});
|
||||
|
||||
it("clears restored macOS npm content cache before install lanes", () => {
|
||||
const macos = readFileSync(TS_PATHS.macos, "utf8");
|
||||
|
||||
expect(macos).toContain('rm -rf "$HOME/.npm/_cacache"');
|
||||
});
|
||||
|
||||
it("provisions portable Git before Windows dev update lanes", () => {
|
||||
const script = readFileSync(TS_PATHS.windows, "utf8");
|
||||
const windowsGit = readFileSync(TS_PATHS.windowsGit, "utf8");
|
||||
|
||||
Reference in New Issue
Block a user