ci: Find duplicate and slow tests (#9188)

This commit is contained in:
Diamond Lewis
2024-07-16 03:34:10 -05:00
committed by GitHub
parent 872b9eb47b
commit e355f36ed4
13 changed files with 43 additions and 170 deletions

View File

@@ -369,16 +369,6 @@ describe('Auth Adapter features', () => {
expect(spy).toHaveBeenCalled();
});
it('should throw if no triggers found', async () => {
await reconfigureServer({ auth: { wrongAdapter } });
const user = new Parse.User();
await expectAsync(
user.save({ authData: { wrongAdapter: { id: 'wrongAdapter' } } })
).toBeRejectedWithError(
'Adapter is not configured. Implement either validateAuthData or all of the following: validateSetUp, validateLogin and validateUpdate'
);
});
it('should throw if policy does not match one of default/solo/additional', async () => {
const adapterWithBadPolicy = {
validateAppId: () => Promise.resolve(),