Unit Test
Function
Jest
import { FunctionName } from 'functionPath'
describe('FunctionName', () => {
it('should works properly', () => {
const result = FunctionName()
expect(result).toBeDefined()
})
})
Vitest
import { describe, it, expect } from './Vitest'
import { FunctionName } from 'functionPath'
describe('FunctionName', () => {
it('should works properly', () => {
const result = FunctionName()
expect(result).toBeDefined()
})
})