We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66732d6 commit 89e42ccCopy full SHA for 89e42cc
src/index.spec.ts
@@ -355,6 +355,20 @@ describe('ts-node', function () {
355
cp.stdin!.end('console.log("123")\n')
356
357
})
358
+ it('REPL has command to get type information', function (done) {
359
+ const cp = exec(`${cmd} --interactive`, function (err, stdout) {
360
+ expect(err).to.equal(null)
361
+ expect(stdout).to.equal(
362
+ '> undefined\n' +
363
364
+ '> const a: 123\n' +
365
+ '> '
366
+ )
367
+ return done()
368
+ })
369
+
370
+ cp.stdin!.end('\nconst a = 123\n.type a')
371
372
373
it('should support require flags', function (done) {
374
exec(`${cmd} -r ./tests/hello-world -pe "console.log('success')"`, function (err, stdout) {
0 commit comments