@storybook/test
Advanced tools
Comparing version 8.3.0-alpha.6 to 8.3.0-alpha.7
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": "8.3.0-alpha.6", | ||
"version": "8.3.0-alpha.7", | ||
"description": "", | ||
@@ -48,3 +48,4 @@ "keywords": [ | ||
"@storybook/csf": "^0.1.11", | ||
"@storybook/instrumenter": "8.3.0-alpha.6", | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/instrumenter": "8.3.0-alpha.7", | ||
"@testing-library/dom": "10.4.0", | ||
@@ -65,3 +66,3 @@ "@testing-library/jest-dom": "6.4.8", | ||
"peerDependencies": { | ||
"storybook": "^8.3.0-alpha.6" | ||
"storybook": "^8.3.0-alpha.7" | ||
}, | ||
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6189
1524112
10
+ Added@storybook/global@^5.0.0
+ Added@storybook/core@8.3.0(transitive)
+ Added@storybook/instrumenter@8.3.0-alpha.7(transitive)
+ Added@types/estree@1.0.5(transitive)
+ Addedstorybook@8.3.0(transitive)
- Removed@storybook/core@8.3.1(transitive)
- Removed@storybook/instrumenter@8.3.0-alpha.6(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removedbetter-opn@3.0.2(transitive)
- Removeddefine-lazy-prop@2.0.0(transitive)
- Removedis-docker@2.2.1(transitive)
- Removedis-wsl@2.2.0(transitive)
- Removedjsdoc-type-pratt-parser@4.1.0(transitive)
- Removedopen@8.4.2(transitive)
- Removedstorybook@8.3.1(transitive)