* add: vitest configs * added vitest scripts to package * test coverage of src code * initial unit testing * added new testing workflows * comments added, overlapping tests removed * decouple env, tests --------- Co-authored-by: Kevin Dang <kevinthedang_1@outlook.com>
12 lines
372 B
TypeScript
12 lines
372 B
TypeScript
import { defineConfig, configDefaults } from 'vitest/config'
|
|
|
|
// config for vitest
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true, // <-- reduces test file imports
|
|
coverage: {
|
|
exclude: [...configDefaults.exclude, 'build/*'], // <-- exclude JS build
|
|
reporter: ['text', 'html'] // <-- reports in text, html
|
|
}
|
|
}
|
|
}) |