mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
End-to-end test setup (#4833)
* First start on test setup * Setup e2e runner framework * Use prepublishOnly for docs build * Setup docker-based e2e test runner * Spacing * Setup db-getter + config * Build image in Dockerode, pull images if needed * Fix waiting for DB, run test for each running instance * Get tests running per vendor * Temp remove oracle * Close awaiting connections in between
This commit is contained in:
17
e2e-tests/api/ping.test.ts
Normal file
17
e2e-tests/api/ping.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from 'supertest';
|
||||
import { getURLsToTest } from '../get-urls-to-test';
|
||||
|
||||
describe('/server', () => {
|
||||
it('/ping', () =>
|
||||
Promise.all(
|
||||
getURLsToTest().map((url) =>
|
||||
request(url)
|
||||
.get('/server/ping')
|
||||
.expect('Content-Type', /text\/html/)
|
||||
.expect(200)
|
||||
.then((response) => {
|
||||
expect(response.text).toBe('pong');
|
||||
})
|
||||
)
|
||||
));
|
||||
});
|
||||
Reference in New Issue
Block a user