Skip to content

Commit

Permalink
Event dispatch (#17)
Browse files Browse the repository at this point in the history
feat(): Event dispatch through Dispatcher & Incomer classes
  • Loading branch information
Rossb0b authored Jun 5, 2023
1 parent 090b661 commit 29634fe
Show file tree
Hide file tree
Showing 30 changed files with 9,384 additions and 5,883 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jest.setup.js
test/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center"><h1 align="center">
Events
</h1>
</h1></p>

<p align="center">
MyUnisoft Events validator, schemas and types (useful to work with Webhooks).
Expand Down
7 changes: 6 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ module.exports = {
testPathIgnorePatterns: [
"/node_modules/",
"/test/fixtures/"
]
],
testMatch: [
"**/test/**/*.spec.ts"
],
maxWorkers: 1,
globalSetup: "./start-container.js"
};
4 changes: 1 addition & 3 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const dotenv = require("dotenv");
dotenv.config();

require("@myunisoft/utils").CONSTANTS.DEBUG = false;

jest.setTimeout(30000);
jest.setTimeout(10_000);
10,566 changes: 4,715 additions & 5,851 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "jest"
"test": "jest",
"prepublishOnly": "rimraf dist/ && npm run build"
},
"repository": {
"type": "git",
Expand All @@ -31,15 +32,20 @@
"validation"
],
"dependencies": {
"ajv": "^8.11.0"
"@myunisoft/redis": "github:MyUnisoft/redis",
"ajv": "^8.11.0",
"ts-pattern": "^4.1.3",
"uuid": "^9.0.0"
},
"devDependencies": {
"@nodesecure/eslint-config": "^1.3.0",
"jest": "^27.5.1",
"pino-pretty": "^10.0.0",
"@nodesecure/eslint-config": "^1.7.0",
"@types/jest": "^27.4.1",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3",
"dotenv": "^16.0.0",
"fastify": "^4.3.0",
"dotenv": "^16.0.0"
"jest": "^27.5.1",
"testcontainers": "^8.2.0",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
}
}
Loading

0 comments on commit 29634fe

Please sign in to comment.