It's cooked when it is fork-tender and easily pierced by a fork. Undercooked squash is not very enjoyable, so make sure it's soft, without overcooking it.