* Setup jest framework for unit tests

* Move tests to a separate package

* Remove test script
This commit is contained in:
Cohee
2024-07-10 00:45:39 +03:00
committed by GitHub
parent d5c2bf3781
commit 2cd85f1a51
7 changed files with 6073 additions and 20 deletions

10
tests/sample.test.js Normal file
View File

@@ -0,0 +1,10 @@
describe('sample', () => {
beforeAll(async () => {
await page.goto(global.ST_URL);
await page.waitForFunction('document.getElementById("preloader") === null', { timeout: 0 });
});
it('should be titled "SillyTavern"', async () => {
await expect(page.title()).resolves.toMatch('SillyTavern');
});
});