Skip to content

Commit

Permalink
feat(testing): Starting testing
Browse files Browse the repository at this point in the history
- Large refactor of the dataUpdater file to better allow for testing
    * Not chaining all the function calls/ returning results then
      processing afterward

- Added dataUpdater.test.js with the various tests, using Node's built
  in testing
  • Loading branch information
jmiln committed Apr 8, 2024
1 parent 93c323f commit 58bed55
Show file tree
Hide file tree
Showing 3 changed files with 1,675 additions and 145 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "swgohBot.js",
"scripts": {
"lint": "eslint",
"start": "node swgohBotShard.js"
"start": "node swgohBotShard.js",
"test": "node --test ./test"
},
"author": "Jeffrey Milner",
"license": "MIT",
Expand All @@ -27,7 +28,7 @@
"socket.io-client": "^4.7.5"
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"devDependencies": {
"eslint": "^8.57.0"
Expand Down
Loading

0 comments on commit 58bed55

Please sign in to comment.