Skip to content

Commit

Permalink
Add test addon
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Oct 25, 2024
1 parent b355a94 commit d5f301e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const config: StorybookConfig = {
addons: [
'@chromatic-com/storybook',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-coverage',
'@storybook/addon-designs',
'@storybook/experimental-addon-test'
],
typescript: {
reactDocgen: 'react-docgen',
Expand Down
2 changes: 1 addition & 1 deletion .storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import * as projectAnnotations from './preview';
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
const project = setProjectAnnotations([projectAnnotations]);

beforeAll(project.beforeAll);
beforeAll(project.beforeAll);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"@storybook/addon-coverage": "^1.0.4",
"@storybook/addon-designs": "^8.0.3",
"@storybook/addon-essentials": "^8.4.0-beta.0",
"@storybook/addon-interactions": "^8.4.0-beta.0",
"@storybook/addon-themes": "^8.4.0-beta.0",
"@storybook/blocks": "^8.4.0-beta.0",
"@storybook/experimental-addon-test": "^8.4.0-beta.0",
Expand Down
12 changes: 1 addition & 11 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,4 @@ export default defineWorkspace([
setupFiles: ['./.storybook/vitest.setup.ts'],
},
},
// This is just to test legacy code, ignore this.
{
extends: 'vite.config.ts',
test: {
name: 'portable-stories',
environment: 'happy-dom',
include: ['**/*.test.tsx'],
setupFiles: ['./ps-setup.ts'],
},
},
]);
]);
16 changes: 0 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2149,21 +2149,6 @@ __metadata:
languageName: node
linkType: hard

"@storybook/addon-interactions@npm:^8.4.0-beta.0":
version: 8.4.0-beta.0
resolution: "@storybook/addon-interactions@npm:8.4.0-beta.0"
dependencies:
"@storybook/global": "npm:^5.0.0"
"@storybook/instrumenter": "npm:8.4.0-beta.0"
"@storybook/test": "npm:8.4.0-beta.0"
polished: "npm:^4.2.2"
ts-dedent: "npm:^2.2.0"
peerDependencies:
storybook: ^8.4.0-beta.0
checksum: 10c0/f7ec70526733f955629fb5a96ae325c7f894b4289557f4521477a4c4e130c7954b4a3f9afca4bc6ea54cc75ff1993e980496be83b6a65c9859261922e4058c5a
languageName: node
linkType: hard

"@storybook/addon-measure@npm:8.4.0-beta.0":
version: 8.4.0-beta.0
resolution: "@storybook/addon-measure@npm:8.4.0-beta.0"
Expand Down Expand Up @@ -5071,7 +5056,6 @@ __metadata:
"@storybook/addon-coverage": "npm:^1.0.4"
"@storybook/addon-designs": "npm:^8.0.3"
"@storybook/addon-essentials": "npm:^8.4.0-beta.0"
"@storybook/addon-interactions": "npm:^8.4.0-beta.0"
"@storybook/addon-themes": "npm:^8.4.0-beta.0"
"@storybook/blocks": "npm:^8.4.0-beta.0"
"@storybook/experimental-addon-test": "npm:^8.4.0-beta.0"
Expand Down

0 comments on commit d5f301e

Please sign in to comment.