Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up backend tests #1980

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 0 additions & 47 deletions .github/workflows/CI-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,50 +59,3 @@ jobs:
- name: Check app linting, format and typescript
run: ./scripts/lint_apps.sh

tests-main:
needs: lint-format
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./backend

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: cd .. && corepack enable && pnpm i --frozen-lockfile

- name: Run tests
working-directory: ./backend
run: SERVICE=test pnpm test -- --testPathIgnorePatterns=serverless

tests-serverless:
needs: lint-format
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./backend

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: cd .. && corepack enable && pnpm i --frozen-lockfile

- name: Run tests
working-directory: ./backend
run: SERVICE=test pnpm test -- --testPathPattern="serverless\/"
57 changes: 0 additions & 57 deletions backend/docker-compose.test.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions backend/jest.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"start:discord-ws:dev": "nodemon --watch \"src/**/*.ts\" --watch ../services/libs -e ts,json --exec \"pnpm run start:discord-ws\"",
"start:discord-ws:dev:local": "set -a && . ./.env.dist.local && . ./.env.override.local && set +a && pnpm run start:discord-ws:dev",
"build": "tsc && pnpm run build:documentation && cp package*json dist/ && cp .sequelizerc dist/.sequelizerc ",
"test": "../scripts/cli scaffold up-test && jest --clearCache && set -a && . ./.env.dist.local && . ./.env.test && set +a && NODE_ENV=test SERVICE=test jest --runInBand --verbose --forceExit",
"build:documentation": "copyfiles --flat ./src/documentation/openapi.json ./dist/documentation/",
"db:create:test": "npx ts-node ./src/database/initializers/create test",
"db:create:dev:source": "ts-node ./src/database/initializers/create dev",
Expand Down Expand Up @@ -156,7 +155,6 @@
"@types/config": "^3.3.0",
"@types/cron": "^2.0.0",
"@types/html-to-text": "^8.1.1",
"@types/jest": "^29.5.1",
"@types/node": "~18.0.4",
"@types/sanitize-html": "^2.6.2",
"@types/superagent": "^4.1.15",
Expand All @@ -171,13 +169,11 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-openapi": "^0.0.4",
"jest": "^29.5.0",
"node-mocks-http": "1.9.0",
"nodemon": "2.0.4",
"prettier": "^2.5.1",
"rdme": "^7.2.0",
"supertest": "^6.2.2",
"ts-jest": "^29.1.0",
"ts-node": "10.6.0",
"typescript": "^5.2.2"
}
Expand Down