add testing suite
This commit is contained in:
29
vitest.config.js
Normal file
29
vitest.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
exclude: ["**/node_modules/**", "**/integration/**", "**/integration.test.js"],
|
||||
environment: "node",
|
||||
},
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
reporter: ["text", "text-summary"],
|
||||
include: [
|
||||
"src/textUtils.js",
|
||||
"src/parsing.js",
|
||||
"src/validation.js",
|
||||
"src/dungeonBuild.js",
|
||||
"src/contentFixes.js",
|
||||
"src/dungeonGenerator.js",
|
||||
"src/dungeonTemplate.js",
|
||||
"src/ollamaClient.js",
|
||||
],
|
||||
exclude: ["test/**", "**/*.config.js", "index.js"],
|
||||
thresholds: {
|
||||
statements: 85,
|
||||
branches: 85,
|
||||
functions: 85,
|
||||
lines: 85,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user