mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
* Does the TG Update 😃 * updates beef stations * test * Revert "test" This reverts commit5b0f78aa70. * F'ed up * removes fulp from the .dme to see if we're causing it * removes more fulp stuff * ANOTHER fulp edit * Revert "ANOTHER fulp edit" This reverts commitc88a4f16c3. * Revert "removes more fulp stuff" This reverts commitfd33262a93. * Revert "removes fulp from the .dme to see if we're causing it" This reverts commiteac08bdd21. * remove just gags * Revert "remove just gags" This reverts commit9953031344. * removes the game * Revert "removes the game" This reverts commitef2679ad76. * removes the game again * Revert "removes the game again" This reverts commit7cb3379b68. * deletes only ERTs * Revert "deletes only ERTs" This reverts commite6548bbcec. * deletes modsuits * Revert "deletes modsuits" This reverts commitb0fb973801. * fix checks please * second attempt * attempt 3 * modsuit stuff * id trimmers to all offices * tgu again + removes fulp ert * pass checks... Now! * minor screwup my bad * Pass checks... Now! * pass checks.. Now! * fix checks... Now! * fixes selene windoors * fixes deputy mood boost * delimber organs
619 B
619 B
Jest
You can now write and run unit tests in tgui.
It's quite simple: create a file ending in .test.ts or .spec.ts (usually with the same filename as the file you're testing), and create a test case:
test('something', () => {
expect('a').toBe('a');
});
Refer to README to learn how to run tests.
There is an example test in packages/common/react.spec.ts.
You can read more about Jest here: https://jestjs.io/docs/en/getting-started
Note, that there is still no real solution to test UIs for now, even though a lot of the support is here (jest + jsdom). That will come later.