mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 09:51:01 +00:00
05a7fced65
* shared.ts first test of getReplies * comment testing now validates reply notifications and mentions, some code comment cleanup in other functions * comments revised * first use of getUnreadCount in testing * test notification of new comment replies, clarify usage of getReplies * killall moved earlier in bash script * api-test jest run does not need directory prefix, make consistent with other jest runs * do not put my testing system password into script * fix, killall exits script when no process found * killall now moved to parent script to release locks before database create * need to run killall a second time, before database drop * first use of getReplies getPosts saveUserSettings * accidental duplication of functions, removed * try to sync shared library with main * Nutomic feedback: Better to rename the var instead of putting a comment which can easily get outdated. * Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. (#3761) Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com> * Fix fetch instance software version from nodeinfo (#3772) Fixes #3771 * remove unused code, revert killall change --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com> Co-authored-by: figure-0e <133478007+figure-0e@users.noreply.github.com> Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com> Co-authored-by: Denis Dzyubenko <denis@ddenis.info> Co-authored-by: Felix Ableitner <me@nutomic.com>
27 lines
995 B
JSON
27 lines
995 B
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",
|
|
"scripts": {
|
|
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check 'src/**/*.ts'",
|
|
"fix": "prettier --write src && eslint --fix src",
|
|
"api-test": "jest -i follow.spec.ts && jest -i post.spec.ts && jest -i comment.spec.ts && jest -i private_message.spec.ts && jest -i user.spec.ts && jest -i community.spec.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.1",
|
|
"@types/node": "^20.1.2",
|
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
"@typescript-eslint/parser": "^5.59.5",
|
|
"eslint": "^8.40.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"jest": "^29.5.0",
|
|
"lemmy-js-client": "0.18.3-rc.3",
|
|
"prettier": "^3.0.0",
|
|
"ts-jest": "^29.1.0",
|
|
"typescript": "^5.0.4"
|
|
}
|
|
}
|