mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Add Jest and Babel ESLint parser to devDependencies
This commit is contained in:
parent
695f16ca1e
commit
3bc2e639d9
24
E2E/Tests/App/StatusCheck.spec.ts
Normal file
24
E2E/Tests/App/StatusCheck.spec.ts
Normal 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"}');
|
||||
});
|
||||
});
|
24
E2E/Tests/Ingestor/StatusCheck.spec.ts
Normal file
24
E2E/Tests/Ingestor/StatusCheck.spec.ts
Normal 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
7279
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user