@naturalcycles/dev-lib 17.1.2 → 17.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,8 @@ const maxWorkers = getMaxWorkers()
12
12
  const minWorkers = maxWorkers
13
13
  // threads are tested to be ~10% faster than forks in CI (and no change locally)
14
14
  // UPD: it was not statistically significant, so, reverting back to forks which is more stable
15
- const pool = 'forks'
15
+ // UPD2: in a different experiment, threads show ~10% faster locally, consistently
16
+ const pool = 'threads'
16
17
  process.env.TZ ||= 'UTC'
17
18
 
18
19
  if (testType === 'unit') {
@@ -48,6 +49,7 @@ export const sharedConfig = {
48
49
  setupFiles,
49
50
  logHeapUsage: true,
50
51
  testTimeout: 60_000,
52
+ slowTestThreshold: isCI ? 500 : 300, // higher threshold in CI
51
53
  sequence: {
52
54
  sequencer: VitestAlphabeticSequencer,
53
55
  // shuffle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "17.1.2",
3
+ "version": "17.1.3",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsx scripts/testScript.ts",