[web] adjust unit test setup for npm workspaces GitOrigin-RevId: 4c6f6debbc082301570173345cc366984a9c59f1