83 lines
2.5 KiB
JSON
83 lines
2.5 KiB
JSON
{
|
|
"name": "psycho-symbolic-reasoner-tests",
|
|
"version": "1.0.0",
|
|
"description": "Comprehensive test suite for psycho-symbolic-reasoner",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:unit": "jest --testPathPattern=unit",
|
|
"test:integration": "jest --testPathPattern=integration",
|
|
"test:e2e": "jest --testPathPattern=e2e",
|
|
"test:performance": "jest --testPathPattern=performance",
|
|
"test:cli": "jest --testPathPattern=cli",
|
|
"test:memory": "jest --testPathPattern=memory",
|
|
"test:mcp": "jest --testPathPattern=mcp",
|
|
"test:regression": "jest --testPathPattern=regression",
|
|
"build:wasm": "cd ../graph_reasoner && wasm-pack build --target web --out-dir ../tests/wasm/graph_reasoner",
|
|
"build:wasm:all": "npm run build:wasm && cd ../planner && wasm-pack build --target web --out-dir ../tests/wasm/planner && cd ../extractors && wasm-pack build --target web --out-dir ../tests/wasm/extractors",
|
|
"test:all": "npm run build:wasm:all && npm run test"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.5",
|
|
"@types/node": "^20.6.0",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "^5.2.2",
|
|
"@babel/core": "^7.22.0",
|
|
"@babel/preset-env": "^7.22.0",
|
|
"@babel/preset-typescript": "^7.22.0",
|
|
"babel-jest": "^29.7.0",
|
|
"puppeteer": "^21.3.0",
|
|
"ws": "^8.14.0",
|
|
"express": "^4.18.0",
|
|
"supertest": "^6.3.0",
|
|
"benchmark": "^2.1.4",
|
|
"@types/benchmark": "^2.1.2",
|
|
"cli-tester": "^0.6.0",
|
|
"mock-spawn": "^0.2.6",
|
|
"weak-napi": "^2.0.2"
|
|
},
|
|
"dependencies": {
|
|
"wasm-bindgen": "^0.2.0"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest",
|
|
"testEnvironment": "node",
|
|
"roots": ["<rootDir>/src"],
|
|
"testMatch": [
|
|
"**/__tests__/**/*.ts",
|
|
"**/?(*.)+(spec|test).ts"
|
|
],
|
|
"transform": {
|
|
"^.+\\.ts$": "ts-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.ts",
|
|
"!**/*.d.ts",
|
|
"!**/node_modules/**",
|
|
"!**/wasm/**"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 90,
|
|
"functions": 90,
|
|
"lines": 90,
|
|
"statements": 90
|
|
}
|
|
},
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/src/setup/jest.setup.ts"
|
|
],
|
|
"moduleNameMapping": {
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
"^@test/(.*)$": "<rootDir>/src/test-utils/$1"
|
|
},
|
|
"testEnvironments": [
|
|
"node",
|
|
"jsdom"
|
|
]
|
|
}
|
|
} |