hintshell 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -28,13 +28,18 @@ test("Windows stop script stops only live wrapper processes", () => {
|
|
|
28
28
|
assert.doesNotMatch(script, /Get-Process -Name 'hintshell', 'hintshell-core'/);
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
test("PowerShell update
|
|
31
|
+
test("PowerShell update checks npm version before lifecycle work and retains module helpers", () => {
|
|
32
32
|
const module = fs.readFileSync(
|
|
33
33
|
path.join(__dirname, "..", "integrations", "powershell", "HintShellModule", "HintShellModule.psm1"),
|
|
34
34
|
"utf8"
|
|
35
35
|
);
|
|
36
|
-
assert.match(module, /
|
|
37
|
-
assert.
|
|
36
|
+
assert.match(module, /function script:Get-HSInstalledVersion/);
|
|
37
|
+
assert.match(module, /function script:Get-HSLatestNpmVersion/);
|
|
38
|
+
assert.match(module, /npm view hintshell@latest version --fetch-timeout=30000 --fetch-retries=1/);
|
|
39
|
+
assert.match(module, /already the latest version/);
|
|
40
|
+
assert.match(module, /if \(\$installedVersion -and \$latestVersion -and \$installedVersion -eq \$latestVersion\)[\s\S]*?return[\s\S]*?Stopping daemon/);
|
|
41
|
+
assert.doesNotMatch(module, /Remove-Module HintShellModule -Force/);
|
|
42
|
+
assert.doesNotMatch(module, /Reloading module \+ starting daemon/);
|
|
38
43
|
});
|
|
39
44
|
|
|
40
45
|
test("isolated tests skip global process control", () => {
|