Resolve "Fix Pipeline"
**What did I do?** * change `.gitlab-ci.yml` to basically reproduce docker compose up and npm run jest 1. Go into server and run `npm install` 1. Go into client and run `npm install` 1. Go into server and run `npm run build` 1. Go into server, start the server and run all tests in `server/tests` 1. Go into server, start the server, go into client, start the client and run all tests in `client/tests` * Create Testing documentation under `doc/testing.md` * install `jest` and `ts-jest` and all their dependencies as dev-dependencies * Create config files for jest under `client/jest.config.js` and `server/jest.config.js` * Create basic tests that also serve as examples under `server/tests/connection.test.ts` and `client/tests/connection.test.ts` * The server tests basically try some GET requests to some API Endpoints defined in `server/src/routes.ts` and expect 404 errors * The client just polls the index.html file of the frontend * change the `tsconfig.json` files to lint(?) the test directories
Showing
- .gitlab-ci.yml 37 additions, 30 deletions.gitlab-ci.yml
- client/jest.config.js 5 additions, 0 deletionsclient/jest.config.js
- client/package-lock.json 13110 additions, 7085 deletionsclient/package-lock.json
- client/package.json 8 additions, 3 deletionsclient/package.json
- client/tests/connection.test.ts 17 additions, 0 deletionsclient/tests/connection.test.ts
- client/tsconfig.json 2 additions, 1 deletionclient/tsconfig.json
- doc/testing.md 108 additions, 0 deletionsdoc/testing.md
- server/jest.config.js 5 additions, 0 deletionsserver/jest.config.js
- server/package-lock.json 9259 additions, 2294 deletionsserver/package-lock.json
- server/package.json 6 additions, 1 deletionserver/package.json
- server/tests/connection.test.ts 32 additions, 0 deletionsserver/tests/connection.test.ts
- server/tsconfig.json 2 additions, 1 deletionserver/tsconfig.json
Loading
Please register or sign in to comment