Socket
Socket
Sign inDemoInstall

@storybook/test

Package Overview
Dependencies
Maintainers
11
Versions
453
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/test - npm Package Compare versions

Comparing version 0.0.0-pr-28882-sha-90fe4bc9 to 0.0.0-pr-28882-sha-a04fe375

19

dist/index.d.ts
import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';
import { AsymmetricMatchersContaining, MatchersObject, MatcherState, JestAssertion, ExpectStatic } from '@vitest/expect';
import * as domTestingLibrary from '@testing-library/dom';
import { BoundFunctions } from '@testing-library/dom';
import _userEvent from '@testing-library/user-event';

@@ -123,3 +124,4 @@ import { spyOn as spyOn$1, Mock as Mock$1, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';

/**
* Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will only empty `.mock` state, it will not reset implementation.
* Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will
* only empty `.mock` state, it will not reset implementation.
*

@@ -130,3 +132,5 @@ * It is useful if you need to clean up mock between different assertions.

/**
* Calls [`.mockReset()`](https://vitest.dev/api/mock#mockreset) on every mocked function. This will empty `.mock` state, reset "once" implementations and force the base implementation to return `undefined` when invoked.
* Calls [`.mockReset()`](https://vitest.dev/api/mock#mockreset) on every mocked function. This will
* empty `.mock` state, reset "once" implementations and force the base implementation to return
* `undefined` when invoked.
*

@@ -137,3 +141,4 @@ * This is useful when you want to completely reset a mock to the default state.

/**
* Calls [`.mockRestore()`](https://vitest.dev/api/mock#mockrestore) on every mocked function. This will restore all original implementations.
* Calls [`.mockRestore()`](https://vitest.dev/api/mock#mockrestore) on every mocked function. This
* will restore all original implementations.
*/

@@ -144,4 +149,6 @@ declare function restoreAllMocks(): void;

*
* When `partial` is `true` it will expect a `Partial<T>` as a return value. By default, this will only make TypeScript believe that
* the first level values are mocked. You can pass down `{ deep: true }` as a second argument to tell TypeScript that the whole object is mocked, if it actually is.
* When `partial` is `true` it will expect a `Partial<T>` as a return value. By default, this will
* only make TypeScript believe that the first level values are mocked. You can pass down `{ deep:
* true }` as a second argument to tell TypeScript that the whole object is mocked, if it actually
* is.
*

@@ -172,3 +179,3 @@ * @param item Anything that can be mocked

type Queries = ReturnType<typeof within<typeof queries>>;
type Queries = BoundFunctions<typeof queries>;
declare module '@storybook/csf' {

@@ -175,0 +182,0 @@ interface Canvas extends Queries {

{
"name": "@storybook/test",
"version": "0.0.0-pr-28882-sha-90fe4bc9",
"version": "0.0.0-pr-28882-sha-a04fe375",
"description": "",

@@ -48,3 +48,4 @@ "keywords": [

"@storybook/csf": "^0.1.11",
"@storybook/instrumenter": "0.0.0-pr-28882-sha-90fe4bc9",
"@storybook/global": "^5.0.0",
"@storybook/instrumenter": "0.0.0-pr-28882-sha-a04fe375",
"@testing-library/dom": "10.4.0",

@@ -65,3 +66,3 @@ "@testing-library/jest-dom": "6.4.8",

"peerDependencies": {
"storybook": "^0.0.0-pr-28882-sha-90fe4bc9"
"storybook": "^0.0.0-pr-28882-sha-a04fe375"
},

@@ -68,0 +69,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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