@@ -50,7 +50,7 @@ export interface TestContext {
5050 cwd ?: ( ) => string ;
5151
5252 // Control of underlying sanitizer
53- santize ?: { resources ?: boolean ; ops ?: boolean ; exit ?: boolean } ;
53+ sanitize ?: { resources ?: boolean ; ops ?: boolean ; exit ?: boolean } ;
5454
5555 // control if test is ran or skipped
5656 ignore ?: boolean ;
@@ -86,11 +86,11 @@ export function mergeTestContexts(baseContext: TestContext, additionalContext?:
8686 } ,
8787 // override cwd if provided
8888 cwd : additionalContext . cwd || baseContext . cwd ,
89- // merge santize options
90- santize : {
91- resources : additionalContext . santize ?. resources ?? baseContext . santize ?. resources ,
92- ops : additionalContext . santize ?. ops ?? baseContext . santize ?. ops ,
93- exit : additionalContext . santize ?. exit ?? baseContext . santize ?. exit ,
89+ // merge sanitize options
90+ sanitize : {
91+ resources : additionalContext . sanitize ?. resources ?? baseContext . sanitize ?. resources ,
92+ ops : additionalContext . sanitize ?. ops ?? baseContext . sanitize ?. ops ,
93+ exit : additionalContext . sanitize ?. exit ?? baseContext . sanitize ?. exit ,
9494 } ,
9595 // override ignore if provided
9696 ignore : additionalContext . ignore ?? baseContext . ignore ,
@@ -165,9 +165,9 @@ export function test(test: TestDescriptor) {
165165 ? `[${ test . type } ] > ${ test . name } (${ test . context . name } )`
166166 : `[${ test . type } ] > ${ test . name } ` ;
167167
168- const sanitizeResources = test . context . santize ?. resources ;
169- const sanitizeOps = test . context . santize ?. ops ;
170- const sanitizeExit = test . context . santize ?. exit ;
168+ const sanitizeResources = test . context . sanitize ?. resources ;
169+ const sanitizeOps = test . context . sanitize ?. ops ;
170+ const sanitizeExit = test . context . sanitize ?. exit ;
171171 const ignore = test . context . ignore ;
172172 const userSession = ! runningInCI ( ) ;
173173
0 commit comments