@@ -74,18 +74,17 @@ describe("resolvePluginRuntimeLoadContext", () => {
|
74 | 74 | env, |
75 | 75 | }); |
76 | 76 | |
77 | | -expect(context).toEqual( |
78 | | -expect.objectContaining({ |
79 | | - rawConfig, |
80 | | -config: resolvedConfig, |
81 | | -activationSourceConfig: rawConfig, |
82 | | - env, |
83 | | -workspaceDir: "/resolved-workspace", |
84 | | -autoEnabledReasons: { |
85 | | -demo: ["demo configured"], |
86 | | -}, |
87 | | -}), |
88 | | -); |
| 77 | +expect(context).toEqual({ |
| 78 | + rawConfig, |
| 79 | +config: resolvedConfig, |
| 80 | +activationSourceConfig: rawConfig, |
| 81 | +autoEnabledReasons: { |
| 82 | +demo: ["demo configured"], |
| 83 | +}, |
| 84 | +workspaceDir: "/resolved-workspace", |
| 85 | + env, |
| 86 | +logger: context.logger, |
| 87 | +}); |
89 | 88 | expect(applyPluginAutoEnableMock).toHaveBeenCalledWith({ |
90 | 89 | config: rawConfig, |
91 | 90 | env, |
@@ -128,18 +127,16 @@ describe("resolvePluginRuntimeLoadContext", () => {
|
128 | 127 | activate: false, |
129 | 128 | onlyPluginIds: ["demo"], |
130 | 129 | }), |
131 | | -).toEqual( |
132 | | -expect.objectContaining({ |
133 | | -config: context.config, |
134 | | -activationSourceConfig: context.activationSourceConfig, |
135 | | -autoEnabledReasons: context.autoEnabledReasons, |
136 | | -workspaceDir: "/explicit-workspace", |
137 | | -env: context.env, |
138 | | -logger: context.logger, |
139 | | -cache: false, |
140 | | -activate: false, |
141 | | -onlyPluginIds: ["demo"], |
142 | | -}), |
143 | | -); |
| 130 | +).toEqual({ |
| 131 | +config: context.config, |
| 132 | +activationSourceConfig: context.activationSourceConfig, |
| 133 | +autoEnabledReasons: context.autoEnabledReasons, |
| 134 | +workspaceDir: "/explicit-workspace", |
| 135 | +env: context.env, |
| 136 | +logger: context.logger, |
| 137 | +cache: false, |
| 138 | +activate: false, |
| 139 | +onlyPluginIds: ["demo"], |
| 140 | +}); |
144 | 141 | }); |
145 | 142 | }); |