Deno.TestDefinition.permissions - Deno documentation
property Deno.TestDefinition.permissions

Specifies the permissions that should be used to run the test.

Set this to "inherit" to keep the calling runtime permissions, set this to "none" to revoke all permissions, or set a more specific set of permissions using a PermissionOptionsObject.

Type