@@ -112,14 +112,9 @@ export function setupTest(
112112 * Once invoked, all subsequent hooks.beforeEach and test invocations will
113113 * have access to the following:
114114 * * All of the methods / properties listed for `setupTest`
115- * * this.render(...) - Renders the provided template snippet returning a
116- * promise that resolves once rendering has completed
117- * * An importable render function that de-sugars into this.render will be
118- * the default output of blueprints
115+ * * An importable render function
119116 * * this.element - Returns the native DOM element representing the element
120117 * that was rendered via this.render
121- * * this.$(...) - When jQuery is present, executes a jQuery selector with
122- * the current this.element as its root
123118 */
124119export function setupRenderingTest (
125120 hooks : NestedHooks ,
@@ -364,30 +359,38 @@ declare global {
364359 * module's queue has emptied, it will not run this hook again.
365360 */
366361 after < TC extends TestContext > (
367- fn : ( this : TC , assert : Assert ) => void | Promise < void >
362+ fn :
363+ | ( ( this : TC , assert : Assert ) => void )
364+ | ( ( this : TC , assert : Assert ) => Promise < void > )
368365 ) : void ;
369366
370367 /**
371368 * Runs after each test.
372369 */
373370 afterEach < TC extends TestContext > (
374- fn : ( this : TC , assert : Assert ) => void | Promise < void >
371+ fn :
372+ | ( ( this : TC , assert : Assert ) => void )
373+ | ( ( this : TC , assert : Assert ) => Promise < void > )
375374 ) : void ;
376375
377376 /**
378377 * Runs before the first test.
379378 */
380379 // SAFETY: this is just wildly, impossibly unsafe. QUnit cannot -- ever! --
381380 before < TC extends TestContext > (
382- fn : ( this : TC , assert : Assert ) => void | Promise < void >
381+ fn :
382+ | ( ( this : TC , assert : Assert ) => void )
383+ | ( ( this : TC , assert : Assert ) => Promise < void > )
383384 ) : void ;
384385
385386 /**
386387 * Runs before each test.
387388 */
388389 // SAFETY: this is just wildly, impossibly unsafe. QUnit cannot -- ever! --
389390 beforeEach < TC extends TestContext > (
390- fn : ( this : TC , assert : Assert ) => void | Promise < void >
391+ fn :
392+ | ( ( this : TC , assert : Assert ) => void )
393+ | ( ( this : TC , assert : Assert ) => Promise < void > )
391394 ) : void ;
392395 }
393396
@@ -413,7 +416,9 @@ declare global {
413416 // `<template>` and local scope.
414417 test < TC extends TestContext > (
415418 name : string ,
416- callback : ( this : TC , assert : Assert ) => void | Promise < unknown >
419+ callback :
420+ | ( ( this : TC , assert : Assert ) => void )
421+ | ( ( this : TC , assert : Assert ) => Promise < void > )
417422 ) : void ;
418423
419424 /**
@@ -438,7 +443,9 @@ declare global {
438443 // `<template>` and local scope.
439444 only < TC extends TestContext > (
440445 name : string ,
441- callback : ( this : TC , assert : Assert ) => void | Promise < unknown >
446+ callback :
447+ | ( ( this : TC , assert : Assert ) => void )
448+ | ( ( this : TC , assert : Assert ) => Promise < void > )
442449 ) : void ;
443450
444451 /**
@@ -457,7 +464,9 @@ declare global {
457464 // `<template>` and local scope.
458465 todo < TC extends TestContext > (
459466 name : string ,
460- callback : ( this : TC , assert : Assert ) => void | Promise < unknown >
467+ callback :
468+ | ( ( this : TC , assert : Assert ) => void )
469+ | ( ( this : TC , assert : Assert ) => Promise < void > )
461470 ) : void ;
462471
463472 /**
@@ -479,7 +488,9 @@ declare global {
479488 // `<template>` and local scope.
480489 skip < TC extends TestContext > (
481490 name : string ,
482- callback ?: ( this : TC , assert : Assert ) => void | Promise < unknown >
491+ callback ?:
492+ | ( ( this : TC , assert : Assert ) => void )
493+ | ( ( this : TC , assert : Assert ) => Promise < void > )
483494 ) : void ;
484495 }
485496}
0 commit comments