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("replaces doctor advice for plugin packaging compiled-output failures",async()=>{
1071
+
setSnapshotOnce(
1072
+
makeInvalidSnapshot({
1073
+
issues: [
1074
+
{
1075
+
path: "plugins.slots.memory",
1076
+
message: "plugin not found: source-only-pack",
1077
+
},
1078
+
],
1079
+
warnings: [
1080
+
{
1081
+
path: "plugins",
1082
+
message:
1083
+
"plugin source-only-pack: installed plugin package requires compiled runtime output for TypeScript entry index.ts: expected ./dist/index.js. This is a plugin packaging issue, not a local config problem.",
@@ -58,6 +68,28 @@ function setConfigSnapshot(params: {
58
68
config,
59
69
sourceConfig: config,
60
70
issues: params.issues??[],
71
+
warnings: params.warnings??[],
72
+
legacyIssues: params.legacyIssues??[],
73
+
});
74
+
}
75
+
76
+
functionsetPluginPackagingInvalidSnapshot(){
77
+
setConfigSnapshot({
78
+
exists: true,
79
+
valid: false,
80
+
issues: [
81
+
{
82
+
path: "plugins.slots.memory",
83
+
message: "plugin not found: source-only-pack",
84
+
},
85
+
],
86
+
warnings: [
87
+
{
88
+
path: "plugins",
89
+
message:
90
+
"plugin source-only-pack: installed plugin package requires compiled runtime output for TypeScript entry index.ts: expected ./dist/index.js. This is a plugin packaging issue, not a local config problem.",
it("replaces doctor fix advice for plugin packaging-only invalid config",async()=>{
191
+
setInvalidSnapshot({
192
+
issues: [
193
+
{
194
+
path: "plugins.slots.memory",
195
+
message: "plugin not found: source-only-pack",
196
+
},
197
+
],
198
+
warnings: [
199
+
{
200
+
path: "plugins",
201
+
message:
202
+
"plugin source-only-pack: installed plugin package requires compiled runtime output for TypeScript entry index.ts: expected ./dist/index.js. This is a plugin packaging issue, not a local config problem.",
0 commit comments