Revert "[Tests][JS] Don't use codegen helpers for JS diagnostic tests"