Merge branch 'feat/47-G-recover-small' into feat/47-G-join8
This commit is contained in:
@@ -111,7 +111,7 @@ func TestAMeshPackageIsNotBeyondTheSdk(t *testing.T) {
|
||||
}
|
||||
|
||||
// 1489/AC2: a module naming lodash with a lock gets npm ci --omit=dev --ignore-scripts (fake runner), its install put
|
||||
// at its node_modules without the SDK and without any copy of it; without a lock the step fails naming the directory.
|
||||
// at its node_modules without the install's SDK or any copy of it; without a lock the step fails naming the directory.
|
||||
func TestAModuleNamingLodashWithALockIsInstalledWithoutTheSdkAndWithoutALockFails(t *testing.T) {
|
||||
files := typeScriptModule(`{"dependencies":{"@novox/mesh-sdk":"^0.1.6","lodash":"^4"},"devDependencies":{"x":"1"},"scripts":{"test":"y"}}`)
|
||||
files["modules/m/package-lock.json"] = `{"lockfileVersion":3}`
|
||||
@@ -133,7 +133,8 @@ func TestAModuleNamingLodashWithALockIsInstalledWithoutTheSdkAndWithoutALockFail
|
||||
if _, err := os.Stat(filepath.Join(nm, "lodash", "index.js")); err != nil {
|
||||
t.Errorf("lodash is not at the module's node_modules: %v", err)
|
||||
}
|
||||
for _, gone := range []string{"@novox/mesh-sdk", "a/node_modules/@novox/mesh-sdk"} {
|
||||
// The install's copies are gone; the one at the top is the latest release placed after it (placeSDK).
|
||||
for _, gone := range []string{"@novox/mesh-sdk/index.js", "a/node_modules/@novox/mesh-sdk"} {
|
||||
if _, err := os.Stat(filepath.Join(nm, gone)); err == nil {
|
||||
t.Errorf("a copy of the SDK is left at %s", gone)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user