We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc698c3 commit 358b614Copy full SHA for 358b614
1 file changed
apps/meteor/tests/end-to-end/teardown.ts
@@ -8,7 +8,7 @@ let lastUrl: string;
8
let lastMethod: string;
9
let lastBody: unknown;
10
let lastQuery: unknown;
11
-let lastResponse: Response;
+let lastResponse: Response | undefined;
12
13
methods.forEach((method) => {
14
const original = request[method];
@@ -17,6 +17,7 @@ methods.forEach((method) => {
17
lastMethod = method;
18
lastBody = undefined;
19
lastQuery = undefined;
20
+ lastResponse = undefined;
21
22
const test = original(url);
23
const originalSend = test.send.bind(test);
0 commit comments