We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b074ba0 commit f8d68a1Copy full SHA for f8d68a1
src/index.ts
@@ -166,16 +166,17 @@ export async function getReusableApp<
166
}
167
168
export async function clearReusableApp() {
169
+ const oldApp = app;
170
+ app = undefined;
171
+ appService = undefined;
172
try {
- if (app) {
- await shutdownApp(app);
173
+ if (oldApp) {
174
+ await shutdownApp(oldApp);
175
176
} catch (error) {
177
// eslint-disable-next-line no-console
178
console.error('Shared app shutdown failed', error);
179
- app = undefined;
- appService = undefined;
180
181
182
export async function getSimulatedContext<Config extends ConfigurationSchema = ConfigurationSchema>(
0 commit comments