Skip to content

Commit

Permalink
AI generated authentication tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopdave committed Aug 31, 2024
1 parent f4dee3b commit 8878f08
Show file tree
Hide file tree
Showing 8 changed files with 1,698 additions and 147 deletions.
45 changes: 29 additions & 16 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@
"license": "Apache-2.0",
"scripts": {
"start": "yarn build && node --experimental-modules src/index.js",
"build": "tsc --noEmit false",
"build": "tsc --noEmit",
"test": "yarn build && NODE_OPTIONS=\"--experimental-vm-modules --input-type module\" npx jest --detectOpenHandles",
"clean": "rm -rf src/*.js src/*/*.js",
"nuke": "rm -rf node_modules/*"
},
"dependencies": {
"@apollo/client": "^3.8.7",
"@apollo/server": "^4.9.5",
"@faker-js/faker": "^8.0.2",
"@types/cors": "^2.8.15",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.5",
"@types/sqlite3": "^3.1.10",
"apollo-client": "^2.6.10",
"apollo-datasource": "^3.3.2",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
Expand All @@ -42,33 +40,48 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.25.0",
"@babel/preset-typescript": "^7.24.7",
"@faker-js/faker": "^8.0.2",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.16",
"@types/relay-runtime": "^14.1.15",
"@types/uuid": "^9.0.6",
"faker": "^6.6.6",
"babel-jest": "^29.7.0",
"graphql": "^16.8.1",
"jest": "^29.0.3",
"react": "^18.2.0",
"supertest": "^6.2.4",
"ts-jest": "^29.0.3",
"ts-jest": "^29.2.5",
"typescript": "~4.9.4"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"verbose": true,
"collectCoverage": true,
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"transformIgnorePatterns": [
"/node_modules/"
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"extensionsToTreatAsEsm": [
".ts",
".tsx"
],
"globals": {
"ts-jest": {
"useESM": true
}
},
"testMatch": [
"*.test.ts",
"**/*.test.ts"
],
"transform": {
"^.+\\.ts$": [
"ts-jest",
{
"tsconfig": "tsconfig.json",
"useESM": true
}
]
}
"verbose": true,
"collectCoverage": true
}
}
Loading

0 comments on commit 8878f08

Please sign in to comment.