Skip to content

Commit

Permalink
Feat: [SymonClient] Use Piscina for reporting (#1157)
Browse files Browse the repository at this point in the history
* init

* It's working!

* Fix tests

* Build when testing

* Fix test reporter

* Fix typing

* add more timeout for symon test

---------

Co-authored-by: Nico Prananta <[email protected]>
  • Loading branch information
dennypradipta and nicnocquee authored Nov 7, 2023
1 parent 073ab56 commit 5ecc922
Show file tree
Hide file tree
Showing 10 changed files with 2,674 additions and 4,681 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"unicorn/prefer-event-target": "warn",
"unicorn/prefer-export-from": "warn",
"unicorn/prefer-logical-operator-over-ternary": "warn",
"unicorn/prefer-node-protocol": "warn",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-top-level-await": "warn",
"unicorn/switch-case-braces": "warn",
"unicorn/text-encoding-identifier-case": "warn"
Expand Down
6,467 changes: 2,271 additions & 4,196 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prepack": "npm run clean && tsc -b && oclif manifest",
"start": "npm run prepack && ./bin/dev.js",
"start:prod": "npm run prepack && ./bin/run.js",
"test": "npm run clean && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text --extension .ts mocha --forbid-only {packages,src,test}/**/*.test.ts --exclude test/cli.test.ts",
"test": "npm run prepack && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text --extension .ts mocha --config .mocharc.json --forbid-only \"{packages,src,test,workers}/**/*.test.ts\" --exclude test/cli.test.ts",
"cli-test": "bats test/bats/cli.bats",
"test:watch": "npm run clean && NODE_ENV=test mocha {packages,src,test}/**/*.test.ts --watch --watch-files {packages,src,test}/**/*",
"prod_test": "npm run prod_test:bats && npm run prod_test:cli",
Expand Down Expand Up @@ -91,6 +91,7 @@
"mariadb": "^3.0.2",
"mongodb": "^4.10.0",
"mongodb-uri": "^0.9.7",
"node-abort-controller": "^3.1.1",
"node-cron": "3.0.0",
"os-name": "4.0.1",
"p-event": "^4.2.0",
Expand All @@ -99,6 +100,7 @@
"ping": "^0.4.1",
"pino": "8.14.1",
"pino-pretty": "10.0.1",
"piscina": "^4.1.0",
"prom-client": "13.1.0",
"redis": "^4.3.0",
"smtp-server": "^3.8.0",
Expand All @@ -124,7 +126,7 @@
"@types/js-yaml": "^4.0.2",
"@types/mocha": "^5.2.7",
"@types/mongodb-uri": "^0.9.1",
"@types/node": "^12.12.6",
"@types/node": "^12.20.55",
"@types/node-cron": "^2.0.4",
"@types/sinon": "^10.0.2",
"@types/smtp-server": "^3.5.6",
Expand Down
11 changes: 11 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
packages = [
# Required packages
pkgs.git
pkgs.nodejs
pkgs.sqlite
];
}
Loading

0 comments on commit 5ecc922

Please sign in to comment.