Follow-up from "test: add code suggestions e2e spec": Look into switching e2e framework to typescript
The following discussion from !1504 (merged) should be addressed:
-
@michaelangeloio started a discussion: (+2 comments) non-blocking: Question, have we looked into using Typescript for writing these tests for codebase consistency?
The reason why I ask is we've recently merged this MR into
gitlab-lsp
: gitlab-org/editor-extensions/gitlab-lsp!240 (merged)The MR above lets users write any script (or generalized JS code) via Typescript without all the boilerplate needed for
tsc
This is facilitated through the utility tsx.That may not work since the script looks like it's using
wdio run
. However, maybe we could leverage the existingesbuild
scripts to write the tests in TS? I'm sure there's a good reason for using JSDoc I'm not aware of, but thought I'd bring up the topic nonetheless. Thank you!😄