@awsui/test-utils-converter
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,3 +6,3 @@ "use strict"; | ||
const core_1 = require("@babel/core"); | ||
const runtimeSelectorsPath = `@amzn/awsui-test-utils-core/selectors`; | ||
const runtimeSelectorsPath = `@awsui/test-utils-core/selectors`; | ||
const ourWrappers = ['ElementWrapper', 'ComponentWrapper']; | ||
@@ -14,4 +14,4 @@ function selectorUtilsGenerator({ types: t }) { | ||
const source = path.get('source'); | ||
// Rewrite import path @amzn/awsui-.../dom -> @amzn/awsui-.../selectors | ||
if (source.node.value.startsWith('@amzn/awsui-')) { | ||
// Rewrite import path @awsui/.../dom -> @awsui/.../selectors | ||
if (source.node.value.startsWith('@awsui/')) { | ||
const newImportPath = source.node.value.replace(/\b\/dom\b/, '/selectors'); | ||
@@ -18,0 +18,0 @@ source.replaceWith(t.stringLiteral(newImportPath)); |
@@ -22,5 +22,5 @@ { | ||
"name": "@awsui/test-utils-converter", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/aws/awsui-documentation" | ||
} |
15008