|
37 | 37 | }, |
38 | 38 | "devDependencies": { |
39 | 39 | "@babel/core": "7.20.12", |
| 40 | + "@testing-library/jest-dom": "^5.16.5", |
| 41 | + "@testing-library/react": "^13.4.0", |
40 | 42 | "@types/mdx": "^2.0.3", |
41 | 43 | "@types/node": "18.11.18", |
42 | 44 | "@types/react": "18.0.26", |
43 | 45 | "@types/react-dom": "18.0.10", |
44 | 46 | "@typescript-eslint/eslint-plugin": "5.48.1", |
45 | 47 | "@typescript-eslint/parser": "5.48.1", |
46 | 48 | "babel-eslint": "10.1.0", |
| 49 | + "babel-jest": "^29.3.1", |
| 50 | + "babel-preset-gatsby": "^3.4.0", |
47 | 51 | "eslint": "8.31.0", |
48 | 52 | "eslint-config-airbnb": "19.0.4", |
49 | 53 | "eslint-config-airbnb-typescript": "17.0.0", |
|
54 | 58 | "eslint-plugin-prettier": "4.2.1", |
55 | 59 | "eslint-plugin-react": "7.32.0", |
56 | 60 | "eslint-plugin-react-hooks": "4.6.0", |
| 61 | + "identity-obj-proxy": "^3.0.0", |
| 62 | + "jest": "^29.3.1", |
| 63 | + "jest-environment-jsdom": "^29.3.1", |
57 | 64 | "prettier": "2.8.2", |
58 | 65 | "svg-sprite": "^2.0.2", |
59 | 66 | "ts-node": "10.9.1", |
|
70 | 77 | "check:format": "eslint . --max-warnings 0", |
71 | 78 | "check:types": "tsc --noEmit", |
72 | 79 | "check:watch-types": "tsc --noEmit --watch", |
| 80 | + "dev:test": "jest --watch", |
73 | 81 | "develop": "gatsby develop", |
74 | 82 | "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", |
75 | 83 | "start": "yarn run develop", |
76 | 84 | "serve": "gatsby serve", |
77 | 85 | "clean": "gatsby clean", |
78 | | - "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"", |
| 86 | + "test": "jest", |
79 | 87 | "prestart": "yarn run build:sprite", |
80 | 88 | "prebuild": "yarn run build:sprite" |
81 | 89 | }, |
|
0 commit comments