Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

339
Views
La función simulada de Jest no se cuenta en forEach loop (pero sí en for...of loop)

Tengo este problema con Jest. Uso una función simulada y sus llamadas no se cuentan dentro del bucle forEach . Sin embargo, en un bucle for , todo funciona bien...

 async function resetRoles(supabase, discord) { discord.guilds.cache.forEach(async (guild) => { const guild_data = await supabase.fetchGuild(guild.id, discord.application.id) const role_manager = guild.roles.cache.find((role) => role.name == guild_data[0].role); }); }

Obviamente, no puedo usar un bucle for .

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!