Skip to content

Commit 9d43498

Browse files
committed
global: upgrade tests & lint for react 18
* Replaces enzyme adapter for React 18 compatibility * Replaces eslint rules to apply React 18 rules
1 parent 58d6896 commit 9d43498

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.eslintrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends:
2-
- '@inveniosoftware/invenio'
3-
- '@inveniosoftware/invenio/prettier'
2+
- "@inveniosoftware/eslint-config-invenio/configs/react18.yaml"
3+
- "@inveniosoftware/eslint-config-invenio/configs/prettier.yaml"
44

55
env:
66
browser: true

src/setupTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// IMPORTANT: this files should be imported first to apply some global variables
22
import "./polyfill.js";
33
import { configure } from "enzyme";
4-
import Adapter from "enzyme-adapter-react-16";
4+
import Adapter from "@cfaester/enzyme-adapter-react-18";
55

66
configure({ adapter: new Adapter() });

0 commit comments

Comments
 (0)