add testing suite

This commit is contained in:
2026-02-21 22:19:21 -05:00
parent 07128c3529
commit 83eee20b2c
25 changed files with 5317 additions and 1628 deletions

View File

@@ -4,8 +4,10 @@
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test:integration": "node --test test/integration.test.js",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/integration/**'",
"test:coverage": "vitest run --coverage --exclude '**/integration/**'",
"test:integration": "vitest run --config vitest.integration.config.js",
"lint": "eslint .",
"start": "node index.js"
},
@@ -18,8 +20,10 @@
"sharp": "^0.34.3"
},
"devDependencies": {
"@eslint/js": "^9.34.0",
"eslint": "^9.34.0",
"globals": "^17.0.0"
"@eslint/js": "^10.0.0",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.0",
"globals": "^17.0.0",
"vitest": "^4.0.18"
}
}