The test description says: getTrainersPokemons: replaces trainerIds with the pokemons belonging to a trainer for an array of trainers
However, the test itself checks the pokemon property:
trainersWithPokemons.forEach(trainer => {
expect(trainer).toEqual(expect.objectContaining({
id: expect.any(Number),
name: expect.any(String),
pokemons: expect.any(Array)
}))
trainer.pokemons.forEach(pokemon => {
expect(pokemon).toEqual(expect.objectContaining({
id: expect.any(Number),
name: expect.any(String),
avg_spawns: expect.any(Number),
}))
})
})