Added e2e tests for all existing endpoints
This commit is contained in:
parent
8cd335dac7
commit
c151cdf691
2 changed files with 14 additions and 1 deletions
|
|
@ -18,7 +18,8 @@
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json"
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||||
|
"test:e2e-watch": "jest --watch --config ./test/jest-e2e.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@juicyllama/nestjs-redoc": "^2.3.11",
|
"@juicyllama/nestjs-redoc": "^2.3.11",
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,16 @@ describe("AppController (e2e)", () => {
|
||||||
await app.init();
|
await app.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("/skills", () => {
|
||||||
|
return request(app.getHttpServer()).get("/skills").expect(200);
|
||||||
|
});
|
||||||
|
it("/experiences", () => {
|
||||||
|
return request(app.getHttpServer()).get("/experiences").expect(200);
|
||||||
|
});
|
||||||
|
it("/education", () => {
|
||||||
|
return request(app.getHttpServer()).get("/education").expect(200);
|
||||||
|
});
|
||||||
|
it("/intro", () => {
|
||||||
|
return request(app.getHttpServer()).get("/intro").expect(200);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue