Term: prejoicing
Example: the crowd roared as the skillful shooter released his three-point shot; but when the jumper clanged off the rim, they knew they had doomed it by prejoicing
Definition: celebrating something before it actually happens, and thereby jinxing it