@awsui/test-utils-core
Advanced tools
Comparing version 1.0.63 to 1.0.64
@@ -31,2 +31,3 @@ "use strict"; | ||
var utils_1 = require("./utils"); | ||
var utils_dom_1 = require("./utils-dom"); | ||
// Used as decorator to mark dom-only methods in test-utils | ||
@@ -68,3 +69,3 @@ // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
var _this = this; | ||
(0, utils_1.act)(function () { | ||
(0, utils_dom_1.act)(function () { | ||
_this.element.dispatchEvent(event); | ||
@@ -76,3 +77,3 @@ }); | ||
var element_1 = this.element; | ||
(0, utils_1.act)(function () { | ||
(0, utils_dom_1.act)(function () { | ||
element_1.focus(); | ||
@@ -88,3 +89,3 @@ }); | ||
var element_2 = this.element; | ||
(0, utils_1.act)(function () { | ||
(0, utils_dom_1.act)(function () { | ||
element_2.blur(); | ||
@@ -91,0 +92,0 @@ }); |
@@ -1,2 +0,1 @@ | ||
import { act as reactDomAct } from 'react-dom/test-utils'; | ||
import 'css.escape'; | ||
@@ -27,2 +26,1 @@ export declare const escapeSelector: (value: string) => string; | ||
} | ||
export declare const act: typeof reactDomAct; |
@@ -35,8 +35,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.act = exports.KeyCode = exports.getUnscopedClassName = exports.appendSelector = exports.substituteScope = exports.isScopedSelector = exports.escapeSelector = void 0; | ||
exports.KeyCode = exports.getUnscopedClassName = exports.appendSelector = exports.substituteScope = exports.isScopedSelector = exports.escapeSelector = void 0; | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
/*eslint-env browser*/ | ||
var React = __importStar(require("react")); | ||
var test_utils_1 = require("react-dom/test-utils"); | ||
var Tokenizer = __importStar(require("css-selector-tokenizer")); | ||
@@ -122,2 +120,1 @@ require("css.escape"); | ||
})(KeyCode = exports.KeyCode || (exports.KeyCode = {})); | ||
exports.act = ('act' in React ? React.act : test_utils_1.act); |
{ | ||
"commit": "15ad142719a754bc784167e0b203cc7d41d639c0" | ||
"commit": "415108bdf09d6f2f69b3d14cc77aee36809675c1" | ||
} |
{ | ||
"version": "1.0.63", | ||
"version": "1.0.64", | ||
"name": "@awsui/test-utils-core", | ||
@@ -4,0 +4,0 @@ "files": [ |
50158
501