shallow-react-snapshot
Version:
Enzyme-like shallow snapshots with React Testing Library
15 lines (14 loc) • 807 B
JavaScript
;
// See https://github.com/facebook/react/blob/main/packages/shared/ReactSymbols.js
// Why not use `react-is`?
// The `react-is` library supports only one version of react. This helps
// us keep the library compatible with multiple versions of react.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Memo = exports.Suspense = exports.ForwardRef = exports.Profiler = exports.StrictMode = exports.Fragment = exports.Portal = void 0;
exports.Portal = Symbol.for("react.portal");
exports.Fragment = Symbol.for("react.fragment");
exports.StrictMode = Symbol.for("react.strict_mode");
exports.Profiler = Symbol.for("react.profiler");
exports.ForwardRef = Symbol.for("react.forward_ref");
exports.Suspense = Symbol.for("react.suspense");
exports.Memo = Symbol.for("react.memo");