Add initial vitest test file template

This commit is contained in:
Andrey Antukh 2023-12-21 13:01:51 +01:00 committed by Alonso Torres
parent 9c969f8b26
commit 127b02922f
4 changed files with 3499 additions and 55 deletions

View file

@ -0,0 +1,10 @@
import { expect, test } from 'vitest'
test('use jsdom in this test file', () => {
const element = document.createElement('div')
expect(element).not.toBeNull()
})
test('adds 1 + 2 to equal 3', () => {
expect(1 +2).toBe(3)
});