- add test to ci pipeline ci.yml
Some checks are pending
CI Pipeline / japa-tests (push) Has started running

This commit is contained in:
Kaimbacher 2023-05-09 14:43:16 +02:00
parent a48a2d9704
commit 578c4180f4
7 changed files with 205 additions and 186 deletions

View file

@ -1,8 +1,8 @@
import { test } from '@japa/runner'
import { test } from '@japa/runner';
test('display welcome page', async ({ client }) => {
const response = await client.get('/')
const response = await client.get('/');
response.assertStatus(200)
response.assertTextIncludes('<h1 class="title"> It Works! </h1>')
})
response.assertStatus(200);
response.assertTextIncludes('<h1 class="title"> It Works! </h1>');
});

View file

@ -0,0 +1,8 @@
import { test } from '@japa/runner';
test.group('Home', () => {
test('make sure 2 + 2 is 4', async ({ assert }) => {
assert.equal(2 + 2, 4);
});
});