what happens if you file for divorce, and your spouse refuses
California is a "no fault" divorce state, which means that it doesn't matter if the other party wants a divorce or not. If the other party fails to respond, a default judgment may be obtained.
Then you get a default judgment of dissolution of marriage.