We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8fc793 commit 855bc5fCopy full SHA for 855bc5f
tests/example.test.js
@@ -0,0 +1,20 @@
1
+const request = require('supertest');
2
+const { setupStrapi, stopStrapi } = require('../playground/tests/helpers');
3
+
4
+let strapi;
5
6
+beforeAll(async () => {
7
+ strapi = await setupStrapi();
8
+});
9
10
+afterAll(async () => {
11
+ await stopStrapi();
12
13
14
+it('should return a successful response from the example endpoint', async () => {
15
+ const response = await request(strapi.server.httpServer)
16
+ .get('/api/boilerplate')
17
+ .expect(200);
18
19
+ expect(response.text).toBe('Welcome to Strapi 🚀');
20
0 commit comments