Open shifenis opened 2 years ago
Run npx cap doctor:
npx cap doctor
π Capacitor Doctor π Latest Dependencies: @capacitor/cli: 3.4.3 @capacitor/core: 3.4.3 @capacitor/android: 3.4.3 @capacitor/ios: 3.4.3 Installed Dependencies: @capacitor/core: 3.4.0 @capacitor/cli: 3.4.0 @capacitor/android: 3.4.0 @capacitor/ios: 3.4.0 [success] iOS looking great! π [success] Android looking great! π
^3.0.1
Azure AD (B2C)
private readonly configuration: OAuth2AuthenticateOptions = { appId: `appId`, authorizationBaseUrl: `authorize`, scope: myScope, accessTokenEndpoint: `accessTokenUri`, resourceUrl: null, responseType: "code", pkceEnabled: true, additionalParameters: { prompt: "select_account", }, web: { redirectUrl: `myRedirect`, }, android: { redirectUrl: "uri", }, ios: { pkceEnabled: true, redirectUrl: "uri", }, } ;
The problem is present when adding additionalParameters and running npx ng test with .spec that contains some test on that file it runs:
additionalParameters
npx ng test
.spec
Object literal may only specify known properties, and 'additionalParameters' does not exist in type 'OAuth2AuthenticateOptions'
Even if the interface is correctly extended.
The test should run.
Capacitor version:
Run
npx cap doctor
:Library version:
^3.0.1
OAuth Provider:
Azure AD (B2C)
Your Plugin Configuration
Current Behavior
The problem is present when adding
additionalParameters
and runningnpx ng test
with.spec
that contains some test on that file it runs:Even if the interface is correctly extended.
Expected Behavior
The test should run.
Reproduction Steps
additionalParameters
objectnpx ng test