Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vscode. VS Code extension for Vitest vitest.dev/vscode
testing vitest vscode
Something went wrong. Try again.
123456789101112131415161718import { describe, it } from 'vitest'
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
describe('console', () => { it('basic', () => { console.log(['string', { hello: 'world' }, 1234, /regex/g, true, false, null]) })
it('async', async () => { console.log('1st') await sleep(200) console.log('2nd') await sleep(200) console.log('3rd') })})