PR-440978: Adding Cypress Component Testing.

This commit is contained in:
2023-03-03 08:27:25 -06:00
parent d76372d1e0
commit 24987d7c09
17 changed files with 2252 additions and 69 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@aleleba/create-react-component-library",
"version": "1.1.18",
"version": "1.2.0",
"description": "A starter kit for create a React component Library with storybook",
"bin": "./bin/cli.js",
"main": "dist/index.js",
@ -13,7 +13,9 @@
"test:watch": "jest --watch",
"storybook": "start-storybook -p 3000",
"build-storybook": "build-storybook",
"check-updates": "npx npm-check-updates -u && npm i --legacy-peer-deps"
"check-updates": "npx npm-check-updates -u && npm i --legacy-peer-deps",
"cy:open": "npx cypress open",
"cy:run": "npx cypress run --headless --component"
},
"repository": {
"type": "git",
@ -63,11 +65,13 @@
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"cypress": "^12.7.0",
"dotenv": "^16.0.3",
"eslint": "^8.35.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-storybook": "^0.6.11",
"eslint-webpack-plugin": "^4.0.0",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
@ -75,11 +79,12 @@
"mini-css-extract-plugin": "^2.7.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"resolve-ts-aliases": "^1.0.1",
"sass": "^1.58.3",
"sass-loader": "^13.2.0",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.2",
"ts-jest": "^29.0.5",
"tsconfig-paths-webpack-plugin": "^4.0.0",
"typescript": "^4.9.5",
"url-loader": "^4.1.1",