add testing suite
This commit is contained in:
14
package.json
14
package.json
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user