@naturalcycles/dev-lib 17.1.1 → 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.
- package/cfg/vitest.config.mjs +5 -1
- package/dist/lint.util.d.ts +1 -1
- package/package.json +1 -1
package/cfg/vitest.config.mjs
CHANGED
|
@@ -10,7 +10,10 @@ const isCI = !!process.env['CI']
|
|
|
10
10
|
const junitReporterEnabled = isCI && testType !== 'manual'
|
|
11
11
|
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
|
+
// UPD: it was not statistically significant, so, reverting back to forks which is more stable
|
|
15
|
+
// UPD2: in a different experiment, threads show ~10% faster locally, consistently
|
|
16
|
+
const pool = 'threads'
|
|
14
17
|
process.env.TZ ||= 'UTC'
|
|
15
18
|
|
|
16
19
|
if (testType === 'unit') {
|
|
@@ -46,6 +49,7 @@ export const sharedConfig = {
|
|
|
46
49
|
setupFiles,
|
|
47
50
|
logHeapUsage: true,
|
|
48
51
|
testTimeout: 60_000,
|
|
52
|
+
slowTestThreshold: isCI ? 500 : 300, // higher threshold in CI
|
|
49
53
|
sequence: {
|
|
50
54
|
sequencer: VitestAlphabeticSequencer,
|
|
51
55
|
// shuffle: {
|
package/dist/lint.util.d.ts
CHANGED