You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// all dependencies with this name have the same version
221
-
this.$logger.warn(`Detected same versions (${_.first(versions)}) of the ${dependencyName} installed at locations: ${_.map(dependencyOccurrences,d=>d.directory).join(", ")}`);
this.$logger.debug(`Detected same versions (${_.first(versions)}) of the ${dependencyName} installed at locations: ${_.map(dependencyOccurrences,d=>d.directory).join(", ")}`);
this.$logger.debug(`Detected different versions of the ${dependencyName} installed at locations: ${_.map(dependencyOccurrences,d=>d.directory).join(", ")}\nThis can cause build failures.`);
// all dependencies with this name have the same version
275
+
this.$logger.warn(`Detected the framework ${frameworkName} is installed multiple times from the same versions of plugin (${_.first(versions)}) at locations: ${_.map(dependencyOccurrences,d=>d.directory).join(", ")}`);
expectedWarning: "Detected same versions (4.0.0) of the nativescript-ui-core installed at locations: /Users/username/projectDir/node_modules/nativescript-ui-core, "+
800
+
expectedWarning: "Detected the framework a.framework is installed multiple times from the same versions of plugin (4.0.0) at locations: /Users/username/projectDir/node_modules/nativescript-ui-core, "+
constexpectedWarnMessage="Detected same versions (%s) of the tns-core-modules installed at locations: /Users/username/projectDir/node_modules/tns-core-modules, /Users/username/projectDir/node_modules/some-package/tns-core-modules\n";
960
+
constexpectedWarnMessage="Detected the framework a.framework is installed multiple times from the same versions of plugin (%s) at locations: /Users/username/projectDir/node_modules/nativescript-ui-core, /Users/username/projectDir/node_modules/some-package/nativescript-ui-core\n";
925
961
assert.equal(logger.warnOutput,util.format(expectedWarnMessage,"6.3.0"),"The warn message must be shown only once - the result of the private method must be cached as input dependencies have not changed");
assert.equal(logger.warnOutput,util.format(expectedWarnMessage,"6.3.0")+util.format(expectedWarnMessage,"1.0.0"),"When something in input dependencies change, the cached value shouldn't be taken into account");
0 commit comments