Skip to content

Commit ab75ef2

Browse files
committed
cleanup, remove @storybook/testing-react
1 parent dc33ee8 commit ab75ef2

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

npm/react/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"dependencies": {
2323
"@cypress/mount-utils": "0.0.0-development",
24-
"@storybook/testing-react": "^0.0.22",
2524
"debug": "4.3.2",
2625
"find-webpack": "2.2.1",
2726
"find-yarn-workspace-root": "2.0.0"

npm/react/src/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
export * from './mount'
22

33
export * from './mountHook'
4-
5-
// TODO: Create our own version and eliminate this dependency?
6-
export * from '@storybook/testing-react'

packages/data-context/src/actions/StorybookActions.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ export class StorybookActions {
113113
.join('\n\n')
114114

115115
return endent`${isReact ? `import React from "react"` : ''}
116-
import * as stories from "./${storyFile.name}";
117-
${getDependency()};
116+
import * as stories from "./${storyFile.name}"
117+
${getDependency()}
118118
119-
const composedStories = composeStories(stories);
119+
const composedStories = composeStories(stories)
120120
121121
describe('${parsed.meta.title || parsed.meta.component}', () => {
122122
${itContent}

yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -7936,11 +7936,6 @@
79367936
"@storybook/client-api" "^6.1.21"
79377937
"@storybook/react" "^6.1.21"
79387938

7939-
"@storybook/testing-react@^0.0.22":
7940-
version "0.0.22"
7941-
resolved "https://registry.yarnpkg.com/@storybook/testing-react/-/testing-react-0.0.22.tgz#65d3defefbac0183eded0dafb601241d8f135c66"
7942-
integrity sha512-XBJpH1cROXkwwKwD89kIcyhyMPEN5zfSyOUanrN+/Tx4nB5IwzVc/Om+7mtSFvh4UTSNOk5G42Y12KE/HbH7VA==
7943-
79447939
"@storybook/[email protected]":
79457940
version "6.2.7"
79467941
resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-6.2.7.tgz#7dbbcde537099b1fe65ec63a517fd54a3dd587f5"

0 commit comments

Comments
 (0)