Taxation on inheritance of assets for California/community property resident

Suppose two spouses have a joint tenant (wros) brokerage account in California (community property state),

when one spouse passes away, will the surviving spouse receive a 100% or 50% cost basis adjustment

for the account's assets?

And if both spouses pass away, will the designated beneficiary receive any cost basis adjustment of the assets?

Thanks