-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolving Endpoint Regression and Codebase Refinement (#21)
* Fix swagger overriding other routes * Add basic tests for choices routes * Remove node_modules from source * Simplify testing CI pipeline * Flesh out swagger & refactor choices tests * Add daos tests * Add poll tests * Add swagger test * Slight refactor of imports for consistency * Add tokens tests * logic for xtz weighted polls * fixes requested * last PR fix --------- Co-authored-by: fabiolalombardim <lombardifabiola@hotmail.com> Co-authored-by: fabiolalombardim <37227394+fabiolalombardim@users.noreply.github.com>
- Loading branch information
1 parent
e466bc4
commit 2c219f7
Showing
1,104 changed files
with
2,647 additions
and
234,516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: API tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
- run: yarn install | ||
- run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { MongoMemoryServer } = require('mongodb-memory-server'); | ||
|
||
module.exports = async () => { | ||
const mongoServer = await MongoMemoryServer.create(); | ||
process.env.TEST_MONGO_URI = mongoServer.getUri(); | ||
|
||
// Store the MongoMemoryServer instance in a global variable | ||
global.__MONGOSERVER__ = mongoServer; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = async () => { | ||
if (global.__MONGOSERVER__) { | ||
await global.__MONGOSERVER__.stop(); | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.