The foreseeability test is a legal principle used to determine whether a defendant should be held liable for harm that occurred as a result of their actions. This test assesses whether the harm that happened was a foreseeable consequence of the defendant's conduct, meaning that a reasonable person in the defendant's position would have anticipated the potential harm. If the harm is found to be foreseeable, it helps establish proximate cause, which is critical in determining legal liability.