The parameters for creating paired fake W3C Permissions and Geolocation APIs.
OptionallocationServicesParams?: LocationServicesParametersOptional parameters to use when creating the location services.
OptionalpermissionStoreParams?: PermissionStoreParametersOptional parameters to use when creating the permission store.
OptionaluserParams?: Omit<UserParameters, "locationServices" | "permissionStore">Optional parameters to use when creating the user.
The paired APIs, along with other useful services.
Readonlygeolocation: GeolocationThe fake W3C Geolocation API.
ReadonlylocationServices: MutableLocationServicesThe virtual location services.
Readonlyobserver: GeolocationObserverAn observer for geolocation changes.
Readonlypermissions: PermissionsThe fake W3C Permissions API.
ReadonlypermissionStore: PermissionStoreA store for managing permission access.
Readonlyuser: Usera virtual user that can affect geolocation and permissions.
createWrappedAPIs to create paired fake APIs that wrap existing APIs.
Create paired fake W3C Permissions and Geolocation APIs.
The permission access state of the geolocation permission in the permission store is used by the fake Geolocation API. This allows you to simulate how real browser permissions affect the behavior of the Geolocation API.