Merged in feature/storybook-tests (pull request #2623)

Feature/storybook tests

* feature: add interaction tests for storybook and upgrade storybook@9

* add a11y testing for storybook

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests

* Test and build only required packages

* .

* .

* .

* .

* .

* .

* .

* disable playwright tests in netlify ci

* .

* debug out process.env

* don't run playwright on CI

* remove unused netlify-plugin-playwright-cache

* .

* .

* .

* .

* .

* .

* remove turbo dependancy to design-system#test

* merge

* merge


Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-08-14 06:25:08 +00:00
parent b2148cd12e
commit f531c7a49f
43 changed files with 1132 additions and 2120 deletions

View File

@@ -164,10 +164,12 @@
"storybook": "yarn run generate && storybook dev -p 6006",
"build-storybook": "storybook build",
"test": "vitest run --passWithNoTests",
"test:s": "vitest --project=storybook",
"test:watch": "vitest",
"prepack": "yarn run build",
"prepare": "husky && yarn run build",
"check-types": "tsc --noEmit"
"check-types": "tsc --noEmit",
"test:browser": "vitest --config=vitest.browser.config.ts"
},
"dependencies": {
"@scandic-hotels/common": "workspace:*"
@@ -187,21 +189,20 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.26.0",
"@storybook/addon-essentials": "^8.6.12",
"@storybook/addon-interactions": "^8.6.12",
"@storybook/addon-links": "^8.6.12",
"@storybook/addon-themes": "^8.6.12",
"@storybook/blocks": "^8.6.12",
"@storybook/react": "^8.6.12",
"@storybook/react-vite": "^8.6.12",
"@storybook/test": "^8.6.12",
"@storybook/addon-a11y": "^9.1.2",
"@storybook/addon-docs": "^9.1.2",
"@storybook/addon-links": "^9.1.2",
"@storybook/addon-themes": "^9.1.2",
"@storybook/addon-vitest": "^9.1.2",
"@storybook/react-vite": "^9.1.2",
"@types/css-modules": "^1.0.5",
"@types/node": "^20.17.17",
"@types/react": "^19",
"@types/react-dom": "^19",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"@vitejs/plugin-react": "^4.4.1",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/browser": "^3.2.4",
"class-variance-authority": "^0.7.1",
"colord": "^2.9.3",
"copy-to-clipboard": "^3.3.3",
@@ -210,23 +211,25 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"eslint-plugin-storybook": "^0.12.0",
"eslint-plugin-storybook": "^9.1.2",
"glob": "^11.0.2",
"globals": "^16.1.0",
"husky": "^9.1.7",
"jiti": "^1.21.0",
"lint-staged": "^15.5.2",
"motion": "^12.10.0",
"playwright": "^1.54.2",
"prettier": "^3.5.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rollup": "^4.40.2",
"rollup-preserve-directives": "^1.1.3",
"storybook": "^8.6.12",
"storybook": "^9.1.2",
"typescript": "^5.8.3",
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.3",
"vite-plugin-lib-inject-css": "^2.2.2",
"vitest": "^3.2.4"
"vitest": "^3.2.4",
"vitest-browser-react": "^1.0.1"
}
}