a728d30c99
* Refactor flattenSchema to simplify JSON schema for Google Generative AI API compatibility * Added unit test and github action * Add unit tests workflow and update test script in package.json * Downgrade eslint-plugin-jest to make min node version 18
17 lines
546 B
JSON
17 lines
546 B
JSON
{
|
|
"name": "sillytavern-tests",
|
|
"type": "module",
|
|
"license": "AGPL-3.0",
|
|
"scripts": {
|
|
"test": "npm run test:unit && npm run test:e2e",
|
|
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.json",
|
|
"test:e2e": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest-e2e.config.json"
|
|
},
|
|
"dependencies": {
|
|
"@types/jest": "^29.5.12",
|
|
"eslint": "^8.57.0",
|
|
"jest": "^29.7.0",
|
|
"jest-puppeteer": "^10.0.1"
|
|
}
|
|
}
|