mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
ad90cd77f9
* add private visibility * filter private communities in post_view.rs * also filter in comment_view * community follower state * remove unused method * sql fmt * add CommunityFollower.approved_by * implement api endpoints * api changes * only admins can create private community for now * add local api tests * fix api tests * follow remote private community * use authorized fetch for content in private community * federate community visibility * dont mark content in private community as public * expose ApprovalRequired in api * also check content fetchable for outbox/featured * address private community content to followers * implement reject activity * fix tests * add files * remove local api tests * dont use delay * is_new_instance * single query for is_new_instance * return subscribed type for pending follow * working * need to catch errors in waitUntil * clippy * fix query * lint for unused async * diesel.toml comment * add comment * avoid db reads * rename approved_by to approver_id * add helper * form init * list pending follows should return items for all communities * clippy * ci * fix down migration * fix api tests * references * rename * run git diff * ci * fix schema check * fix joins * ci * ci * skip_serializing_none * fix test --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
38 lines
1.5 KiB
JSON
38 lines
1.5 KiB
JSON
{
|
|
"name": "api_tests",
|
|
"version": "0.0.1",
|
|
"description": "API tests for lemmy backend",
|
|
"main": "index.js",
|
|
"repository": "https://github.com/LemmyNet/lemmy",
|
|
"author": "Dessalines",
|
|
"license": "AGPL-3.0",
|
|
"packageManager": "pnpm@9.12.3",
|
|
"scripts": {
|
|
"lint": "tsc --noEmit && eslint --report-unused-disable-directives && prettier --check 'src/**/*.ts'",
|
|
"fix": "prettier --write src && eslint --fix src",
|
|
"api-test": "jest -i follow.spec.ts && jest -i image.spec.ts && jest -i user.spec.ts && jest -i private_message.spec.ts && jest -i community.spec.ts && jest -i private_community.spec.ts && jest -i post.spec.ts && jest -i comment.spec.ts ",
|
|
"api-test-follow": "jest -i follow.spec.ts",
|
|
"api-test-comment": "jest -i comment.spec.ts",
|
|
"api-test-post": "jest -i post.spec.ts",
|
|
"api-test-user": "jest -i user.spec.ts",
|
|
"api-test-community": "jest -i community.spec.ts",
|
|
"api-test-private-community": "jest -i private_community.spec.ts",
|
|
"api-test-private-message": "jest -i private_message.spec.ts",
|
|
"api-test-image": "jest -i image.spec.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^22.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
"@typescript-eslint/parser": "^8.1.0",
|
|
"eslint": "^9.9.0",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"jest": "^29.5.0",
|
|
"lemmy-js-client": "0.20.0-private-community.9",
|
|
"prettier": "^3.2.5",
|
|
"ts-jest": "^29.1.0",
|
|
"typescript": "^5.5.4",
|
|
"typescript-eslint": "^8.1.0"
|
|
}
|
|
}
|