Vladimir aa8e66250e
fix: don't ignore properties, when put on a default function in CJS context (#2325)
* fix: don't ignore "default" key, when put on a function in CJS context

* test: test case for default.default
2022-11-14 13:59:21 +01:00
2022-11-07 23:50:05 +08:00
2022-07-31 13:49:22 +03:00
2022-11-07 21:37:10 +08:00
2022-10-19 12:29:32 +02:00
2022-08-15 14:04:41 +08: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-08 16:42:14 +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 110 MiB
Languages
TypeScript 94.7%
Vue 3.1%
JavaScript 2%
CSS 0.1%
HTML 0.1%