Fix missing snapshot serializer&enzyme init (#6932)
This commit is contained in:
parent
3417c03f41
commit
bc336abf47
8 changed files with 42 additions and 25 deletions
|
@ -16,8 +16,7 @@ limitations under the License.
|
|||
|
||||
import '../skinned-sdk'; // Must be first for skinning to work
|
||||
import React from "react";
|
||||
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
|
||||
import { configure, mount } from "enzyme";
|
||||
import { mount } from "enzyme";
|
||||
|
||||
import {
|
||||
RovingTabIndexProvider,
|
||||
|
@ -25,8 +24,6 @@ import {
|
|||
useRovingTabIndex,
|
||||
} from "../../src/accessibility/RovingTabIndex";
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
const Button = (props) => {
|
||||
const [onFocus, isActive, ref] = useRovingTabIndex();
|
||||
return <button {...props} onFocus={onFocus} tabIndex={isActive ? 0 : -1} ref={ref} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue