The Jared Wilcurt 6d75630fcc
docs: setting for coverage reports directory (#2400)
* Document setting the coverage reports directory

This took a lot of trial and error to get to work, so it should be documented to save other people the 2 hours of research it took me to get it working.

* Apply suggestions from code review

* Apply suggestions from code review

* Update docs/guide/coverage.md

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>

* Update docs/guide/coverage.md

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-12-04 19:38:16 +01:00
2022-11-07 23:50:05 +08:00
2022-07-31 13:49:22 +03:00
2022-12-03 10:32:58 +01:00
2022-11-07 21:37:10 +08:00
2022-10-19 12:29:32 +02:00
2022-11-21 16:50:58 +01:00
2022-11-07 21:37:10 +08:00
2021-12-12 09:02:05 +08:00
2022-08-02 08:26:26 +03:00
2022-11-22 13:51:32 +01:00
2022-10-19 11:07:05 +02:00

Vitest

A blazing fast unit test framework powered by Vite.

Get involved!

Documentation | Getting Started | Examples | Why Vitest?

中文文档



Features

Vitest requires Vite >=v3.0.0 and Node >=v14

import { assert, describe, expect, it } from 'vitest'

describe('suite name', () => {
  it('foo', () => {
    expect(1 + 1).toEqual(2)
    expect(true).to.be.true
  })

  it('bar', () => {
    assert.equal(Math.sqrt(4), 2)
  })

  it('snapshot', () => {
    expect({ foo: 'bar' }).toMatchSnapshot()
  })
})
$ npx vitest

Sponsors

Anthony Fu Sponsors

Patak Sponsors

Credits

Thanks to:

Contribution

See Contributing Guide.

License

MIT License © 2021-Present Anthony Fu, Matias Capeletto

Description
A Vite-native test framework. It's fast!
Readme MIT 149 MiB
Languages
TypeScript 94.4%
Vue 3.2%
JavaScript 2.2%
CSS 0.1%
HTML 0.1%