UNPKG

@storybook/test-runner

Version:
145 lines (144 loc) 4.88 kB
{ "name": "@storybook/test-runner", "version": "0.22.0", "description": "Test runner for Storybook stories", "keywords": [ "storybook-addons", "test", "runner", "jest", "testing-library", "playwright" ], "repository": { "type": "git", "url": "https://github.com/storybookjs/test-runner" }, "license": "MIT", "author": "shilman", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "bin": { "test-storybook": "./dist/test-storybook.js" }, "files": [ "dist", "README.md", "playwright", "*.d.ts" ], "scripts": { "build": "tsup", "build-storybook": "storybook build", "build:watch": "tsup --watch", "generate-dynamic-stories": "node scripts/generate-dynamic-stories.js", "prepare": "husky install", "release": "yarn build && auto shipit", "start": "concurrently \"yarn build:watch\" \"yarn storybook -- --quiet\"", "storybook": "storybook dev -p 6006", "test": "jest", "test-storybook": "node dist/test-storybook", "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook\"", "test-storybook:ci-coverage": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook --coverage\"", "test-storybook:ci-failures": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"TEST_FAILURES=1 yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && yarn test-storybook:failures\"", "test-storybook:ci-json": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && npx serve storybook-static -l 6006\" \"wait-on tcp:6006 && SKIP_SNAPSHOTS=true yarn test-storybook:json\"", "test-storybook:failures": "SKIP_SNAPSHOTS=true TEST_FAILURES=1 yarn test-storybook --json --failOnConsole --outputFile test-results.json", "test-storybook:json": "yarn test-storybook --stories-json", "test-storybook:no-cache": "yarn test-storybook --no-cache" }, "lint-staged": { "*.{ts,js,tsx,jsx,css,md}": "prettier --write" }, "dependencies": { "@babel/core": "^7.22.5", "@babel/generator": "^7.22.5", "@babel/template": "^7.22.5", "@babel/types": "^7.22.5", "@jest/types": "^29.6.3", "@storybook/csf": "^0.1.11", "@swc/core": "^1.5.22", "@swc/jest": "^0.2.23", "expect-playwright": "^0.8.0", "jest": "^29.6.4", "jest-circus": "^29.6.4", "jest-environment-node": "^29.6.4", "jest-junit": "^16.0.0", "jest-playwright-preset": "^4.0.0", "jest-runner": "^29.6.4", "jest-serializer-html": "^7.1.0", "jest-watch-typeahead": "^2.0.0", "nyc": "^15.1.0", "playwright": "^1.14.0" }, "devDependencies": { "@auto-it/released": "^11.1.6", "@babel/cli": "^7.12.1", "@babel/preset-env": "^7.19.4", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@storybook/addon-coverage": "^1.0.0", "@storybook/addon-essentials": "^8.0.0", "@storybook/addon-interactions": "^8.0.0", "@storybook/react": "^8.0.0", "@storybook/react-vite": "^8.0.0", "@storybook/test": "^8.0.0", "@types/jest": "^29.0.0", "@types/node": "^16.4.1", "@types/node-fetch": "^2.6.11", "@vitejs/plugin-react": "^4.0.3", "auto": "^11.1.6", "babel-jest": "^29.0.0", "babel-loader": "^8.1.0", "babel-plugin-istanbul": "^6.1.1", "can-bind-to-host": "^1.1.1", "commander": "^9.0.0", "concurrently": "^7.0.0", "glob": "^10.2.2", "husky": "^8.0.0", "jest-image-snapshot": "^6.2.0", "lint-staged": "^13.0.3", "node-fetch": "^2", "pkg-up": "^5.0.0", "prettier": "^2.8.1", "react": "^17.0.1", "react-dom": "^17.0.1", "read-pkg-up": "^7.0.1", "storybook": "^8.0.0", "tempy": "^1.0.1", "ts-dedent": "^2.0.0", "ts-jest": "^29.0.0", "tsup": "^6.5.0", "typescript": "~4.9.4", "vite": "^4.4.5", "wait-on": "^7.2.0" }, "peerDependencies": { "storybook": "^0.0.0-0 || ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 || ^9.0.0-0" }, "engines": { "node": "^16.10.0 || ^18.0.0 || >=20.0.0" }, "publishConfig": { "access": "public" }, "auto": { "prereleaseBranches": [ "next", "prerelease", "future" ], "plugins": [ "npm", "released" ] }, "storybook": { "displayName": "Storybook test runner", "unsupportedFrameworks": [ "react-native" ], "icon": "https://user-images.githubusercontent.com/321738/63501763-88dbf600-c4cc-11e9-96cd-94adadc2fd72.png" }, "packageManager": "yarn@4.5.1" }