react-component-snapshot 0.0.167 → 0.0.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/husky.mjs +16 -0
  2. package/package.json +21 -21
package/husky.mjs ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ // @ts-ignore
4
+ Promise.resolve(import('husky'))
5
+ .then(({ default: husky }) => { husky() })
6
+ .catch((e) => {
7
+ if (e instanceof Error) {
8
+ if ('code' in e) {
9
+ const { code } = e
10
+ if (code === 'ERR_MODULE_NOT_FOUND') return
11
+ }
12
+
13
+ const { message } = e
14
+ if (message) console.error(`💥 ${message}`)
15
+ }
16
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-component-snapshot",
3
- "version": "0.0.167",
3
+ "version": "0.0.215",
4
4
  "description": "Transform a React component to match its snapshot in Jest",
5
5
  "keywords": [
6
6
  "react",
@@ -26,36 +26,36 @@
26
26
  "scripts": {
27
27
  "lint": "eslint",
28
28
  "lint:fix": "npm run lint -- --fix",
29
- "prepare": "husky",
29
+ "prepare": "node husky.mjs",
30
30
  "test": "NODE_ENV=test jest"
31
31
  },
32
32
  "dependencies": {
33
33
  "debug": "^4.4.3",
34
- "react-component-name": "^0.0.116"
34
+ "react-component-name": "^0.0.117"
35
35
  },
36
36
  "devDependencies": {
37
- "@babel/core": "^7.28.5",
38
- "@babel/eslint-parser": "^7.28.5",
39
- "@babel/preset-env": "^7.28.5",
40
- "@babel/preset-react": "^7.28.5",
41
- "@sequencemedia/eslint-config-standard": "^0.2.107",
42
- "@sequencemedia/eslint-config-typescript": "^0.1.182",
43
- "@testing-library/jest-dom": "^6.9.1",
44
- "@testing-library/react": "^16.3.0",
45
- "@types/debug": "^4.1.12",
37
+ "@babel/core": "7.29.7",
38
+ "@babel/eslint-parser": "7.29.7",
39
+ "@babel/preset-env": "7.29.7",
40
+ "@babel/preset-react": "7.29.7",
41
+ "@sequencemedia/eslint-config-standard": "^0.2.125",
42
+ "@sequencemedia/eslint-config-typescript": "^0.1.216",
43
+ "@testing-library/jest-dom": "^7.0.1",
44
+ "@testing-library/react": "^16.3.3",
45
+ "@types/debug": "^4.1.13",
46
46
  "@types/jest": "^30.0.0",
47
- "@types/react": "^19.2.7",
48
- "@types/react-dom": "^19.2.3",
49
- "@typescript-eslint/parser": "^8.48.0",
50
- "core-js": "^3.47.0",
47
+ "@types/react": "^19.2.18",
48
+ "@types/react-dom": "^19.2.7",
49
+ "@typescript-eslint/parser": "^8.69.0",
50
+ "core-js": "^3.50.0",
51
51
  "eslint": "9.38.0",
52
52
  "eslint-plugin-react": "^7.37.5",
53
- "globals": "^16.5.0",
53
+ "globals": "^17.12.0",
54
54
  "husky": "^9.1.7",
55
- "jest": "^30.2.0",
56
- "jest-environment-jsdom": "^30.2.0",
57
- "react": "^19.2.0",
58
- "react-dom": "^19.2.0"
55
+ "jest": "^30.5.1",
56
+ "jest-environment-jsdom": "^30.5.1",
57
+ "react": "^19.2.8",
58
+ "react-dom": "^19.2.8"
59
59
  },
60
60
  "imports": {
61
61
  "#react-component-snapshot": "./src/index.mjs"