|
37 | 37 | "build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm", |
38 | 38 | "build:types": "tsc --emitDeclarationOnly", |
39 | 39 | "clean": "rimraf lib", |
| 40 | + "test": "jest", |
40 | 41 | "lint": "eslint . --ext .ts,.tsx", |
41 | 42 | "type-check": "tsc --noEmit", |
42 | 43 | "prepack": "pnpm run clean && pnpm run build", |
43 | | - "prepublish": "pnpm run type-check && pnpm run lint" |
| 44 | + "prepublish": "pnpm run type-check && pnpm run lint && pnpm run test" |
44 | 45 | }, |
45 | 46 | "dependencies": { |
46 | 47 | "@babel/runtime": "^7.18.3", |
|
68 | 69 | "@babel/preset-typescript": "^7.17.12", |
69 | 70 | "@redux-devtools/core": "^3.13.1", |
70 | 71 | "@reduxjs/toolkit": "^1.8.2", |
| 72 | + "@testing-library/jest-dom": "^5.16.4", |
| 73 | + "@testing-library/react": "^13.3.0", |
| 74 | + "@types/jest": "^27.5.2", |
71 | 75 | "@types/hex-rgba": "^1.0.1", |
72 | 76 | "@types/lodash.debounce": "^4.0.7", |
73 | 77 | "@types/react": "^18.0.14", |
74 | 78 | "@typescript-eslint/eslint-plugin": "^5.29.0", |
75 | 79 | "@typescript-eslint/parser": "^5.29.0", |
76 | 80 | "eslint": "^8.18.0", |
77 | 81 | "eslint-config-prettier": "^8.5.0", |
| 82 | + "eslint-plugin-jest": "^26.5.3", |
78 | 83 | "eslint-plugin-react": "^7.30.1", |
79 | 84 | "eslint-plugin-react-hooks": "^4.6.0", |
| 85 | + "jest": "^27.5.1", |
80 | 86 | "react": "^18.2.0", |
| 87 | + "react-dom": "^18.2.0", |
| 88 | + "react-redux": "^8.0.2", |
81 | 89 | "redux": "^4.2.0", |
82 | 90 | "rimraf": "^3.0.2", |
| 91 | + "ts-jest": "^27.1.5", |
83 | 92 | "typescript": "~4.7.4" |
84 | 93 | }, |
85 | 94 | "peerDependencies": { |
|
0 commit comments