@papillonarts/setup 0.46.1 → 0.46.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;qCAkKC"}
|
package/build/eslint/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
35
35
|
'plugin:react/recommended',
|
|
36
36
|
'plugin:jsx-a11y/recommended',
|
|
37
37
|
'plugin:jest/recommended',
|
|
38
|
+
'plugin:testing-library/react',
|
|
38
39
|
'prettier',
|
|
39
40
|
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
40
41
|
),
|
|
@@ -71,6 +72,14 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
71
72
|
jsdom: true,
|
|
72
73
|
renderMount: false,
|
|
73
74
|
renderShallow: false,
|
|
75
|
+
// Custom test globals from jest setup
|
|
76
|
+
axe: 'readonly',
|
|
77
|
+
act: 'readonly',
|
|
78
|
+
cleanup: 'readonly',
|
|
79
|
+
fireEvent: 'readonly',
|
|
80
|
+
render: 'readonly',
|
|
81
|
+
renderToJSON: 'readonly',
|
|
82
|
+
screen: 'readonly',
|
|
74
83
|
// __DEV__: 'readonly',
|
|
75
84
|
},
|
|
76
85
|
|
|
@@ -168,6 +177,10 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
168
177
|
'comma-dangle': 0,
|
|
169
178
|
'no-unused-vars': 'off',
|
|
170
179
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
180
|
+
// Testing Library rules
|
|
181
|
+
'testing-library/prefer-screen-queries': 'error',
|
|
182
|
+
'testing-library/prefer-presence-queries': 'error',
|
|
183
|
+
'testing-library/no-debugging-utils': 'warn',
|
|
171
184
|
},
|
|
172
185
|
},
|
|
173
186
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/jest/setup.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,CAAA;AAKhB,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/jest/setup.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,CAAA;AAKhB,wBAAgB,YAAY,SAoH3B"}
|
package/build/jest/setup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/jest/utility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/jest/utility.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,cAAc,GAAI,WAAW,YAAY,SAA6D,CAAA;AAEnH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,GAAU,WAAW,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,kBACW,CAAA;AAEpG;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,GAAI,iBAAiB,OAIhD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,OAAO,EAAE,gBAAc,EAAE,iBAAa,KAAG,OAAO,CAAC,IAAI,CASnG,CAAA"}
|
package/build/jest/utility.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.waitFor = exports.renderSnapshotAsync = exports.renderSnapshot = exports.createMockStore = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
+
/* eslint-disable testing-library/no-unnecessary-act */
|
|
10
11
|
/**
|
|
11
12
|
* Shared test utilities provided by @papillonarts/setup/jest.
|
|
12
13
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c8cfffdc5d45b31bb56555243bcc588345bfad35"
|
|
41
41
|
}
|