Socket
Socket
Sign inDemoInstall

@deno/shim-deno-test

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deno/shim-deno-test - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

26

dist/deno.types.gen.d.ts

@@ -195,23 +195,18 @@ /// <reference types="node" />

}
/** *UNSTABLE**: New option, yet to be vetted. */
export interface TestContext {
}
/** *UNSTABLE**: New option, yet to be vetted. */
export interface TestContext {
/**
* Run a sub step of the parent test with a given name. Returns a promise
* Run a sub step of the parent test or step. Returns a promise
* that resolves to a boolean signifying if the step completed successfully.
* The returned promise never rejects unless the arguments are invalid.
* If the test was ignored, the promise returns `false`.
* If the test was ignored the promise returns `false`.
*/
step(t: TestStepDefinition): Promise<boolean>;
/**
* Run a sub step of the parent test with a given name. Returns a promise
* Run a sub step of the parent test or step. Returns a promise
* that resolves to a boolean signifying if the step completed successfully.
* The returned promise never rejects unless the arguments are invalid.
* If the test was ignored, the promise returns `false`.
* If the test was ignored the promise returns `false`.
*/
step(name: string, fn: (t: TestContext) => void | Promise<void>): Promise<boolean>;
}
/** *UNSTABLE**: New option, yet to be vetted. */
export interface TestStepDefinition {

@@ -222,15 +217,16 @@ fn: (t: TestContext) => void | Promise<void>;

/**
* Check that the number of async completed ops after the test is the same
* as number of dispatched ops. Defaults to true.
* Check that the number of async completed ops after the test step is the same
* as number of dispatched ops. Defaults to the parent test or step's value.
*/
sanitizeOps?: boolean;
/**
* Ensure the test case does not "leak" resources - ie. the resource table
* Ensure the test step does not "leak" resources - ie. the resource table
* after the test has exactly the same contents as before the test. Defaults
* to true.
* to the parent test or step's value.
*/
sanitizeResources?: boolean;
/**
* Ensure the test case does not prematurely cause the process to exit,
* for example via a call to `Deno.exit`. Defaults to true.
* Ensure the test step does not prematurely cause the process to exit,
* for example via a call to `Deno.exit`. Defaults to the parent test or
* step's value.
*/

@@ -237,0 +233,0 @@ sanitizeExit?: boolean;

{
"name": "@deno/shim-deno-test",
"version": "0.2.0",
"version": "0.3.0",
"description": "Deno.test only shim.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc