Hans Ott
Hans Ott
```ts /** TS_EXPECT_TYPES_ERROR_OPTIONAL_DEPENDENCY **/ import type { Express, Router } from "express"; ``` We replace `TS_EXPECT_TYPES_ERROR_OPTIONAL_DEPENDENCY` with `@ts-expect-error` in our build script. We expect an error if e.g. express is...
We keep durations of invocations to measure how long our algo takes to detect attacks. So per `fs.readFile` or `mysql.query`... When 5000 samples are reached, we compress the durations into...
We keep durations per operation (to measure the time our algo takes to detect attacks) After 5000 samples we compress them into percentiles. 5000 invocations is not much. This means...
It's a bit much per operation
I also found out we didn't check \t \r \n for absolute paths (if it's an URL object)
- Use waitOn for speed (if server boots faster than 2000ms) - Give entire error to t.fail(...) (more details) - Sample apps that didn't respect passed port
e.g. ```{ "http://example.com/some/path": "value" }```