Add Jest and Babel ESLint parser to devDependencies

This commit is contained in:
Simon Larsen 2024-04-25 19:15:14 +01:00
parent 695f16ca1e
commit 3bc2e639d9
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
4 changed files with 6766 additions and 564 deletions

View File

@ -0,0 +1,24 @@
import { test, expect } from '@playwright/test';
import { BASE_URL } from '../../Config';
test.describe('check live and health check of the app', () => {
test('check if app status is ok', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/status").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
test('check if app is ready', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/status/ready").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
test('check if app is live', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/status/live").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
});

View File

@ -0,0 +1,24 @@
import { test, expect } from '@playwright/test';
import { BASE_URL } from '../../Config';
test.describe('check live and health check of the app', () => {
test('check if app status is ok', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/ingestor/status").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
test('check if app is ready', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/ingestor/status/ready").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
test('check if app is live', async ({ page }) => {
await page.goto(`${BASE_URL.addRoute("/ingestor/status/live").toString()}`);
const content = await page.content();
expect(content).toContain('{"status":"ok"}');
});
});

7279
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,16 +7,17 @@
"dependencies": {
"@types/lodash": "^4.17.0",
"eslint-plugin-progress": "^0.0.1",
"jest": "^29.7.0",
"ts-node": "^10.9.2",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/eslint-parser": "^7.11.0",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-private-methods": "^7.16.11",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@babel/eslint-parser": "^7.11.0",
"ejs-lint": "^1.2.2",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",