Skip to content

Commit 5aafa3f

Browse files
chore(deps): bump aws-amplify to 6.16.0 (#6836)
1 parent e45b1fe commit 5aafa3f

File tree

3 files changed

+899
-313
lines changed

3 files changed

+899
-313
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"@types/react-dom": "^18.3.0",
153153
"@types/react-test-renderer": "^18.3.0",
154154
"@vitejs/plugin-vue": "^2.3.4",
155-
"aws-amplify": "6.15.9",
155+
"aws-amplify": "6.16.0",
156156
"esbuild-register": "^3.5.0",
157157
"eslint": "^8.44.0",
158158
"fs-extra": "^11.1.1",
@@ -181,4 +181,4 @@
181181
"rimraf": "5.0.0"
182182
}
183183
}
184-
}
184+
}

packages/ui/src/machines/authenticator/__tests__/defaultServices.test.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -333,47 +333,13 @@ describe('getAmplifyConfig', () => {
333333
});
334334
});
335335

336-
it('correctly parses passwordless config with snake_case format', async () => {
337-
const configWithPasswordless: ResourcesConfig = {
338-
Auth: {
339-
Cognito: {
340-
userPoolClientId: 'xxxxxx',
341-
userPoolId: 'xxxxxx',
342-
loginWith: { username: true, email: false, phone: false },
343-
// @ts-expect-error - snake_case format from backend
344-
passwordless: {
345-
email_otp_enabled: true,
346-
sms_otp_enabled: true,
347-
web_authn: {
348-
relying_party_id: 'example.com',
349-
user_verification: 'preferred',
350-
},
351-
preferred_challenge: 'EMAIL_OTP',
352-
},
353-
},
354-
},
355-
};
356-
357-
getConfigSpy.mockReturnValueOnce(configWithPasswordless);
358-
359-
const output = await getAmplifyConfig();
360-
361-
expect(output.passwordlessCapabilities).toStrictEqual({
362-
emailOtpEnabled: true,
363-
smsOtpEnabled: true,
364-
webAuthnEnabled: true,
365-
preferredChallenge: 'EMAIL_OTP',
366-
});
367-
});
368-
369336
it('correctly parses passwordless config with camelCase format', async () => {
370337
const configWithPasswordless: ResourcesConfig = {
371338
Auth: {
372339
Cognito: {
373340
userPoolClientId: 'xxxxxx',
374341
userPoolId: 'xxxxxx',
375342
loginWith: { username: true, email: false, phone: false },
376-
// @ts-expect-error - camelCase format
377343
passwordless: {
378344
emailOtpEnabled: true,
379345
smsOtpEnabled: false,

0 commit comments

Comments
 (0)