This PR adds a testing suite and action for the routes and methods of the API. We use the standard test framework provided by Bun. The tests are written in TypeScript and are located in the __tests__ directory.
Type of change
[x] Refractor (non-breaking change which cleans up code)
How Has This Been Tested?
Added following tests for the current routes
attacks.test.ts
events.test.ts
factions.test.ts
orders.test.ts
planets.test.ts
sectors.test.ts
stratagems.test.ts
war.test.ts
Test Configuration
Bun version: 1.0.25
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
This PR adds a testing suite and action for the routes and methods of the API. We use the standard test framework provided by Bun. The tests are written in TypeScript and are located in the
__tests__
directory.Type of change
How Has This Been Tested?
Added following tests for the current routes
Test Configuration
Checklist