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
it('should skip an extension with missing "name" in config and log an error',async()=>{
697
+
constconsoleSpy=vi
698
+
.spyOn(console,'error')
699
+
.mockImplementation(()=>{});
694
700
695
701
// Good extension
696
702
createExtension({
@@ -711,7 +717,7 @@ name = "yolo-checker"
711
717
expect(extensions[0].name).toBe('good-ext');
712
718
expect(consoleSpy).toHaveBeenCalledWith(
713
719
expect.stringContaining(
714
-
`Warning: Removing broken extension bad-ext-no-name: Failed to load extension config from ${badConfigPath}: Invalid configuration in ${badConfigPath}: missing "name"`,
720
+
`Warning: Skipping extension in ${badExtDir}: Failed to load extension config from ${badConfigPath}: Invalid configuration in ${badConfigPath}: missing "name"`,
0 commit comments