shinkansen-gears 2.0.4 → 2.1.0
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.
- package/babel.config.cjs +1 -1
- package/eslint.config.mjs +4 -2
- package/jest.after-each.mjs +10 -0
- package/jest.before-each.mjs +1 -0
- package/jest.config.mjs +27 -0
- package/package.json +24 -19
- package/src/js/gears/forward/index.cjs +1 -1
- package/src/js/gears/index.cjs +1 -1
- package/src/js/gears/reverse/index.cjs +1 -1
- package/src/js/render/forward/index.cjs +1 -1
- package/src/js/render/reverse/index.cjs +1 -1
package/babel.config.cjs
CHANGED
package/eslint.config.mjs
CHANGED
|
@@ -80,7 +80,8 @@ export default [
|
|
|
80
80
|
ignores: [
|
|
81
81
|
'src',
|
|
82
82
|
'stories',
|
|
83
|
-
'test'
|
|
83
|
+
'test',
|
|
84
|
+
'jest.*.mjs'
|
|
84
85
|
],
|
|
85
86
|
languageOptions: {
|
|
86
87
|
globals: {
|
|
@@ -145,7 +146,8 @@ export default [
|
|
|
145
146
|
standard({
|
|
146
147
|
files: [
|
|
147
148
|
'src/**/__tests__/**/*.jsx',
|
|
148
|
-
'stories/**/__tests__/**/*.jsx'
|
|
149
|
+
'stories/**/__tests__/**/*.jsx',
|
|
150
|
+
'jest.*.mjs'
|
|
149
151
|
],
|
|
150
152
|
languageOptions: {
|
|
151
153
|
parser: babelParser,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
beforeEach(() => {})
|
package/jest.config.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
bail: true,
|
|
3
|
+
verbose: true,
|
|
4
|
+
rootDir: '.',
|
|
5
|
+
roots: [
|
|
6
|
+
'./src'
|
|
7
|
+
],
|
|
8
|
+
clearMocks: true,
|
|
9
|
+
collectCoverage: true,
|
|
10
|
+
coverageDirectory: './coverage',
|
|
11
|
+
coverageProvider: 'v8',
|
|
12
|
+
testRegex: '(/__tests__/.*|(\\.|/))(test|spec)\\.(mjs?|jsx?)$',
|
|
13
|
+
transform: {
|
|
14
|
+
'^.+\\.jsx$': 'babel-jest',
|
|
15
|
+
'^.+\\.mjs$': 'babel-jest'
|
|
16
|
+
},
|
|
17
|
+
transformIgnorePatterns: [
|
|
18
|
+
'/node_modules\\/(?!react-component-instance)\\/',
|
|
19
|
+
'/node_modules\\/(?!react-component-snapshot)\\/'
|
|
20
|
+
],
|
|
21
|
+
moduleFileExtensions: ['js', 'jsx', 'mjs'],
|
|
22
|
+
testEnvironment: 'jsdom',
|
|
23
|
+
setupFilesAfterEnv: [
|
|
24
|
+
'<rootDir>/jest.before-each.mjs',
|
|
25
|
+
'<rootDir>/jest.after-each.mjs'
|
|
26
|
+
]
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-gears",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Shinkansen Gears",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -60,24 +60,27 @@
|
|
|
60
60
|
"@babel/preset-env": "^7.26.9",
|
|
61
61
|
"@babel/preset-react": "^7.26.3",
|
|
62
62
|
"@babel/register": "^7.25.9",
|
|
63
|
-
"@modernpoacher/design-system": "2.0.
|
|
63
|
+
"@modernpoacher/design-system": "2.0.2",
|
|
64
64
|
"@sequencemedia/eslint-config-standard": "^0.2.43",
|
|
65
65
|
"@sequencemedia/eslint-config-typescript": "^0.1.62",
|
|
66
|
-
"@storybook/addon-actions": "^8.6.
|
|
67
|
-
"@storybook/addon-essentials": "^8.6.
|
|
68
|
-
"@storybook/addon-links": "^8.6.
|
|
66
|
+
"@storybook/addon-actions": "^8.6.7",
|
|
67
|
+
"@storybook/addon-essentials": "^8.6.7",
|
|
68
|
+
"@storybook/addon-links": "^8.6.7",
|
|
69
69
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
70
|
-
"@storybook/manager-api": "^8.6.
|
|
71
|
-
"@storybook/react": "^8.6.
|
|
72
|
-
"@storybook/react-webpack5": "^8.6.
|
|
73
|
-
"@storybook/theming": "^8.6.
|
|
70
|
+
"@storybook/manager-api": "^8.6.7",
|
|
71
|
+
"@storybook/react": "^8.6.7",
|
|
72
|
+
"@storybook/react-webpack5": "^8.6.7",
|
|
73
|
+
"@storybook/theming": "^8.6.7",
|
|
74
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
75
|
+
"@testing-library/react": "^16.2.0",
|
|
74
76
|
"@types/babel__register": "^7.17.3",
|
|
75
77
|
"@types/chai": "^5.2.0",
|
|
76
78
|
"@types/debug": "^4.1.12",
|
|
77
79
|
"@types/jest": "^29.5.14",
|
|
78
80
|
"@types/mocha": "^10.0.10",
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/react
|
|
81
|
+
"@types/prop-types": "^15.7.14",
|
|
82
|
+
"@types/react": "^19.0.11",
|
|
83
|
+
"@types/react-dom": "^19.0.4",
|
|
81
84
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
82
85
|
"@typescript-eslint/parser": "^8.26.1",
|
|
83
86
|
"autoprefixer": "^10.4.21",
|
|
@@ -86,10 +89,11 @@
|
|
|
86
89
|
"cross-env": "^7.0.3",
|
|
87
90
|
"eslint": "^9.22.0",
|
|
88
91
|
"eslint-plugin-react": "^7.37.4",
|
|
89
|
-
"eslint-plugin-storybook": "^0.11.
|
|
92
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
90
93
|
"globals": "^16.0.0",
|
|
91
94
|
"husky": "^9.1.7",
|
|
92
95
|
"jest": "^29.7.0",
|
|
96
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
93
97
|
"mini-css-extract-plugin": "^2.9.2",
|
|
94
98
|
"mocha": "^11.1.0",
|
|
95
99
|
"perfectionist": "^2.4.0",
|
|
@@ -101,16 +105,17 @@
|
|
|
101
105
|
"postcss-map": "^0.11.0",
|
|
102
106
|
"prettier": "^3.5.3",
|
|
103
107
|
"prop-types": "^15.8.1",
|
|
104
|
-
"react": "
|
|
105
|
-
"react-
|
|
108
|
+
"react": "^19.0.0",
|
|
109
|
+
"react-component-instance": "^0.0.6",
|
|
110
|
+
"react-component-snapshot": "^0.0.2",
|
|
111
|
+
"react-dom": "^19.0.0",
|
|
106
112
|
"react-router": "^7.3.0",
|
|
107
|
-
"react-test-renderer": "18.3.1",
|
|
108
113
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
109
|
-
"sass": "^1.
|
|
114
|
+
"sass": "^1.86.0",
|
|
110
115
|
"sass-loader": "^16.0.5",
|
|
111
|
-
"shinkansen-rails": "1.1.
|
|
112
|
-
"storybook": "^8.6.
|
|
113
|
-
"stylelint": "^16.
|
|
116
|
+
"shinkansen-rails": "1.1.6",
|
|
117
|
+
"storybook": "^8.6.7",
|
|
118
|
+
"stylelint": "^16.16.0",
|
|
114
119
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
115
120
|
"stylelint-scss": "^6.11.1",
|
|
116
121
|
"webpack": "^5.98.0",
|
package/src/js/gears/index.cjs
CHANGED