简体   繁体   中英

vscode tooltips doesn't work when using jest

I have a weird scenario where the tooltip information when hovering over a variable in Visual Studio code stops working with the Jest testing framework. The exact same test in Mocha will show the tooltip when I debug.

VSCode version 1.16.1

This is the tooltip that normally appears:
通常显示的工具提示

The test that causes the tooltip to stop displaying:

var axios = require('axios')

describe('asdf', () =>{
    it('does stuff', async () => {

        var boo = { 'hi':'bye'}
        console.log(boo)

        // uncomment out this line and the tooltip disappears!
        //var result = axios.post('', {})
    })
})

github repo for reproduction

看来这是VSCode中的错误,在这里报告

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM