mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-01-18 16:31:32 +00:00
37 lines
547 B
TypeScript
37 lines
547 B
TypeScript
/*
|
|
* This file should have:
|
|
* - 5 functions in total
|
|
* - 3 covered functions
|
|
* - 2 uncovered functions
|
|
*/
|
|
|
|
/* eslint-disable unused-imports/no-unused-vars */
|
|
|
|
// This function is covered
|
|
function first() {
|
|
return 1
|
|
}
|
|
|
|
first()
|
|
|
|
// This function is covered
|
|
export function second() {
|
|
fifth()
|
|
return 2
|
|
}
|
|
|
|
// This function is NOT covered
|
|
export function third() {
|
|
throw new Error('Do not call this function')
|
|
}
|
|
|
|
// This function is NOT covered
|
|
function fourth() {
|
|
return 4
|
|
}
|
|
|
|
// This function is covered
|
|
function fifth() {
|
|
return 5
|
|
}
|