@storybook/test
Advanced tools
Comparing version 0.0.0-pr-28768-sha-89e4a1ff to 0.0.0-pr-28768-sha-f4bf860e
@@ -5,3 +5,3 @@ import { AsymmetricMatchersContaining, MatchersObject, MatcherState, JestAssertion, ExpectStatic } from '@vitest/expect'; | ||
import _userEvent from '@testing-library/user-event'; | ||
import { spyOn as spyOn$1, fn as fn$1, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy'; | ||
import { spyOn as spyOn$1, Mock as Mock$1, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy'; | ||
export * from '@vitest/spy'; | ||
@@ -117,3 +117,8 @@ export { isMockFunction, mocks } from '@vitest/spy'; | ||
declare const spyOn: typeof spyOn$1; | ||
declare const fn: typeof fn$1; | ||
type Procedure = (...args: any[]) => any; | ||
type Mock<T extends Procedure | any[] = any[], R = any> = T extends Procedure ? Mock$1<T> : T extends any[] ? Mock$1<(...args: T) => R> : never; | ||
declare function fn<T extends Procedure = Procedure>(implementation?: T): Mock<T>; | ||
declare function fn<TArgs extends any[] = any, R = any>(): Mock<(...args: TArgs) => R>; | ||
declare function fn<TArgs extends any[] = any[], R = any>(implementation: (...args: TArgs) => R): Mock<(...args: TArgs) => R>; | ||
declare function fn<TArgs extends any[] = any[], R = any>(implementation?: (...args: TArgs) => R): Mock<(...args: TArgs) => R>; | ||
/** | ||
@@ -176,2 +181,2 @@ * Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will only empty `.mock` state, it will not reset implementation. | ||
export { UserEvent, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, traverseArgs, userEvent, waitFor, waitForElementToBeRemoved, within }; | ||
export { Mock, UserEvent, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, traverseArgs, userEvent, waitFor, waitForElementToBeRemoved, within }; |
{ | ||
"name": "@storybook/test", | ||
"version": "0.0.0-pr-28768-sha-89e4a1ff", | ||
"version": "0.0.0-pr-28768-sha-f4bf860e", | ||
"description": "", | ||
@@ -48,13 +48,13 @@ "keywords": [ | ||
"@storybook/csf": "^0.1.11", | ||
"@storybook/instrumenter": "0.0.0-pr-28768-sha-89e4a1ff", | ||
"@testing-library/dom": "10.1.0", | ||
"@testing-library/jest-dom": "6.4.5", | ||
"@storybook/instrumenter": "0.0.0-pr-28768-sha-f4bf860e", | ||
"@testing-library/dom": "10.4.0", | ||
"@testing-library/jest-dom": "6.4.8", | ||
"@testing-library/user-event": "14.5.2", | ||
"@vitest/expect": "1.6.0", | ||
"@vitest/spy": "1.6.0", | ||
"@vitest/expect": "2.0.5", | ||
"@vitest/spy": "2.0.5", | ||
"util": "^0.12.4" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.4.1", | ||
"tinyspy": "^2.2.0", | ||
"chai": "^5.1.1", | ||
"tinyspy": "^3.0.0", | ||
"ts-dedent": "^2.2.0", | ||
@@ -65,3 +65,3 @@ "type-fest": "~2.19", | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-28768-sha-89e4a1ff" | ||
"storybook": "^0.0.0-pr-28768-sha-f4bf860e" | ||
}, | ||
@@ -68,0 +68,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
6
1524510
6182
13
+ Added@storybook/instrumenter@0.0.0-pr-28768-sha-f4bf860e(transitive)
+ Added@testing-library/dom@10.4.0(transitive)
+ Added@testing-library/jest-dom@6.4.8(transitive)
+ Added@vitest/expect@2.0.5(transitive)
+ Added@vitest/pretty-format@2.0.52.1.2(transitive)
+ Added@vitest/spy@2.0.5(transitive)
+ Added@vitest/utils@2.0.52.1.2(transitive)
+ Addedassertion-error@2.0.1(transitive)
+ Addedchai@5.1.1(transitive)
+ Addedcheck-error@2.1.1(transitive)
+ Addeddeep-eql@5.0.2(transitive)
+ Addedloupe@3.1.2(transitive)
+ Addedpathval@2.0.0(transitive)
+ Addedtinyrainbow@1.2.0(transitive)
+ Addedtinyspy@3.0.2(transitive)
- Removed@jest/schemas@29.6.3(transitive)
- Removed@sinclair/typebox@0.27.8(transitive)
- Removed@storybook/instrumenter@0.0.0-pr-28768-sha-89e4a1ff(transitive)
- Removed@testing-library/dom@10.1.0(transitive)
- Removed@testing-library/jest-dom@6.4.5(transitive)
- Removed@vitest/expect@1.6.0(transitive)
- Removed@vitest/spy@1.6.0(transitive)
- Removed@vitest/utils@1.6.0(transitive)
- Removedassertion-error@1.1.0(transitive)
- Removedchai@4.5.0(transitive)
- Removedcheck-error@1.0.3(transitive)
- Removeddeep-eql@4.1.4(transitive)
- Removeddiff-sequences@29.6.3(transitive)
- Removedget-func-name@2.0.2(transitive)
- Removedloupe@2.3.7(transitive)
- Removedpathval@1.1.1(transitive)
- Removedpretty-format@29.7.0(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedtinyspy@2.2.1(transitive)
- Removedtype-detect@4.1.0(transitive)
Updated@testing-library/dom@10.4.0
Updated@vitest/expect@2.0.5
Updated@vitest/spy@2.0.5