. . . what happens to court cases that are pending against me when I file for bankruptcy?

Most pending litigation is stopped when you file for bankruptcy and the court imposes the automatic stay. The new law, however, does not provide an automatic stay for evictions, certain family law cases, and certain licensing cases. Any foreclosure on real estate is generally halted. The permission of the bankruptcy court must be obtained before the litigation or foreclosure may proceed further. Whether the litigation or foreclosure is stopped permanently depends on the particular facts of each case.