tests: Update JS Node tests to support TypeScript.
tests: Update JS Node tests to support TypeScript.

Currently, the `test-js-with-node` tests append ".js" to filenames
without an extension. Since Typescript is now also supported, it can
produce results such as "dict.ts.js". To remedy this, check for ".ts"
files as well.

hackerkid/zulip,hackerkid/zulip,timabbott/zulip,rishig/zulip,rht/zulip,hackerkid/zulip,hackerkid/zulip,eeshangarg/zulip,punchagan/zulip,andersk/zulip,hackerkid/zulip,kou/zulip,andersk/zulip,tommyip/zulip,rishig/zulip,kou/zulip,rht/zulip,eeshangarg/zulip,andersk/zulip,kou/zulip,punchagan/zulip,andersk/zulip,timabbott/zulip,kou/zulip,rht/zulip,showell/zulip,shubhamdhama/zulip,zulip/zulip,brainwane/zulip,kou/zulip,andersk/zulip,rishig/zulip,rishig/zulip,shubhamdhama/zulip,synicalsyntax/zulip,eeshangarg/zulip,synicalsyntax/zulip,andersk/zulip,eeshangarg/zulip,hackerkid/zulip,showell/zulip,punchagan/zulip,rishig/zulip,kou/zulip,rht/zulip,timabbott/zulip,rht/zulip,zulip/zulip,synicalsyntax/zulip,synicalsyntax/zulip,shubhamdhama/zulip,rht/zulip,tommyip/zulip,punchagan/zulip,kou/zulip,eeshangarg/zulip,zulip/zulip,timabbott/zulip,brainwane/zulip,rht/zulip,rishig/zulip,tommyip/zulip,hackerkid/zulip,brainwane/zulip,brainwane/zulip,brainwane/zulip,synicalsyntax/zulip,synicalsyntax/zulip,tommyip/zulip,tommyip/zulip,shubhamdhama/zulip,showell/zulip,zulip/zulip,brainwane/zulip,zulip/zulip,showell/zulip,tommyip/zulip,punchagan/zulip,eeshangarg/zulip,zulip/zulip,showell/zulip,timabbott/zulip,timabbott/zulip,andersk/zulip,shubhamdhama/zulip,tommyip/zulip,rishig/zulip,showell/zulip,shubhamdhama/zulip,zulip/zulip,timabbott/zulip,eeshangarg/zulip,shubhamdhama/zulip,punchagan/zulip,showell/zulip,synicalsyntax/zulip,brainwane/zulip,punchagan/zulip