Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/jasmine

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jasmine - npm Package Compare versions

Comparing version 4.3.6 to 5.1.0

62

jasmine/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for Jasmine 4.3
// Type definitions for Jasmine 5.1
// Project: http://jasmine.github.io

@@ -17,2 +17,3 @@ // Definitions by: Boris Yankov <https://github.com/borisyankov>

// kirjs <https://github.com/kirjs>
// Dmitry Semigradsky <https://github.com/Semigradsky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -205,3 +206,49 @@

interface ThrowUnlessFailure {
/**
* The name of the matcher that was executed for this expectation.
*/
matcherName: string;
/**
* The failure message for the expectation.
*/
message: string;
/**
* Whether the expectation passed or failed.
*/
passed: boolean;
/**
* If the expectation failed, what was the expected value.
*/
expected: any;
/**
* If the expectation failed, what actual value was produced.
*/
actual: any;
}
/**
* Create an expectation for a spec and throw an error if it fails.
* @checkReturnValue see https://tsetse.info/check-return-value
* @param spy
*/
declare function throwUnless<T extends jasmine.Func>(spy: T | jasmine.Spy<T>): jasmine.FunctionMatchers<T>;
/**
* Create an expectation for a spec and throw an error if it fails.
* @checkReturnValue see https://tsetse.info/check-return-value
* @param actual Actual computed value to test expectations against.
*/
declare function throwUnless<T>(actual: ArrayLike<T>): jasmine.ArrayLikeMatchers<T>;
/**
* Create an expectation for a spec and throw an error if it fails.
* @checkReturnValue see https://tsetse.info/check-return-value
* @param actual Actual computed value to test expectations against.
*/
declare function throwUnless<T>(actual: T): jasmine.Matchers<T>;
/**
* Create an asynchronous expectation for a spec and throw an error if it fails.
* @param actual Actual computed value to test expectations against.
*/
declare function throwUnlessAsync<T, U>(actual: T | PromiseLike<T>): jasmine.AsyncMatchers<T, U>;
/**
* Installs spies on all writable and configurable properties of an object.

@@ -362,2 +409,11 @@ * @param object The object upon which to install the `Spy`s.

/**
* Get an AsymmetricMatcher, usable in any matcher
* that passes if the actual value is the same as the sample as determined
* by the `===` operator.
* @param sample The value to compare the actual to.
* @since 4.2.0
*/
function is(sample: any): AsymmetricMatcher<any>;
function arrayContaining<T>(sample: ArrayLike<T>): ArrayContaining<T>;

@@ -400,3 +456,3 @@ function arrayWithExactContents<T>(sample: ArrayLike<T>): ArrayContaining<T>;

function stringContaining(str: string | RegExp): AsymmetricMatcher<string>;
function stringContaining(str: string): AsymmetricMatcher<string>;
/**

@@ -516,4 +572,2 @@ * @deprecated Private method that may be changed or removed in the future

configure(configuration: Configuration): void;
execute(runnablesToRun: Suite[] | null | undefined, onComplete: Func): void;
/** @async */
execute(runnablesToRun?: Suite[]): PromiseLike<JasmineDoneInfo>;

@@ -520,0 +574,0 @@ provideFallbackReporter(reporter: CustomReporter): void;

9

jasmine/package.json
{
"name": "@types/jasmine",
"version": "4.3.6",
"version": "5.1.0",
"description": "TypeScript definitions for Jasmine",

@@ -77,2 +77,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine",

"githubUsername": "kirjs"
},
{
"name": "Dmitry Semigradsky",
"url": "https://github.com/Semigradsky",
"githubUsername": "Semigradsky"
}

@@ -89,4 +94,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "983620e057d5c641117406eb707978a777846c6785852f08a3e3ec0df7228a2b",
"typesPublisherContentHash": "6f562eda2d40c672315747839192f37db59144e677c98d079731df45404beb5f",
"typeScriptVersion": "4.5"
}

@@ -11,7 +11,7 @@ # Installation

### Additional Details
* Last updated: Fri, 15 Sep 2023 20:36:37 GMT
* Last updated: Wed, 04 Oct 2023 20:35:32 GMT
* Dependencies: none
* Global values: `afterAll`, `afterEach`, `beforeAll`, `beforeEach`, `describe`, `expect`, `expectAsync`, `fail`, `fdescribe`, `fit`, `it`, `jasmine`, `pending`, `setSpecProperty`, `setSuiteProperty`, `spyOn`, `spyOnAllFunctions`, `spyOnProperty`, `xdescribe`, `xit`
* Global values: `afterAll`, `afterEach`, `beforeAll`, `beforeEach`, `describe`, `expect`, `expectAsync`, `fail`, `fdescribe`, `fit`, `it`, `jasmine`, `pending`, `setSpecProperty`, `setSuiteProperty`, `spyOn`, `spyOnAllFunctions`, `spyOnProperty`, `throwUnless`, `throwUnlessAsync`, `xdescribe`, `xit`
# Credits
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb), [David Pärsson](https://github.com/davidparsson), [Lukas Zech](https://github.com/lukas-zech-software), [Boris Breuer](https://github.com/Engineer2B), [Chris Yungmann](https://github.com/cyungmann), [Giles Roadnight](https://github.com/Roaders), [Yaroslav Admin](https://github.com/devoto13), [Domas Trijonis](https://github.com/fdim), [Moshe Kolodny](https://github.com/kolodny), [Stephen Farrar](https://github.com/stephenfarrar), [Dominik Ehrenberg](https://github.com/djungowski), [Chives](https://github.com/chivesrs), and [kirjs](https://github.com/kirjs).
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb), [David Pärsson](https://github.com/davidparsson), [Lukas Zech](https://github.com/lukas-zech-software), [Boris Breuer](https://github.com/Engineer2B), [Chris Yungmann](https://github.com/cyungmann), [Giles Roadnight](https://github.com/Roaders), [Yaroslav Admin](https://github.com/devoto13), [Domas Trijonis](https://github.com/fdim), [Moshe Kolodny](https://github.com/kolodny), [Stephen Farrar](https://github.com/stephenfarrar), [Dominik Ehrenberg](https://github.com/djungowski), [Chives](https://github.com/chivesrs), [kirjs](https://github.com/kirjs), and [Dmitry Semigradsky](https://github.com/Semigradsky).
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