@wordpress/e2e-test-utils
Version:
End-To-End (E2E) test utils for WordPress.
13 lines (12 loc) • 304 B
JavaScript
import { join } from "path";
import { WP_BASE_URL } from "./shared/config";
function createURL(WPPath, query = "") {
const url = new URL(WP_BASE_URL);
url.pathname = join(url.pathname, WPPath);
url.search = query;
return url.href;
}
export {
createURL
};
//# sourceMappingURL=create-url.js.map