@vitest/runner 0.30.0 → 0.30.1

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as VitestRunner } from './runner-751eaed8.js';
2
- export { a as VitestRunnerConfig, c as VitestRunnerConstructor, b as VitestRunnerImportSource } from './runner-751eaed8.js';
1
+ import { V as VitestRunner } from './runner-3b8473ea.js';
2
+ export { a as VitestRunnerConfig, c as VitestRunnerConstructor, b as VitestRunnerImportSource } from './runner-3b8473ea.js';
3
3
  import { T as Task, F as File, S as SuiteAPI, a as TestAPI, b as SuiteCollector, c as SuiteHooks, O as OnTestFailedHandler, d as Test } from './tasks-c965d7f6.js';
4
4
  export { D as DoneCallback, m as HookCleanupCallback, H as HookListener, R as RunMode, o as RuntimeContext, q as SequenceHooks, r as SequenceSetupFiles, j as Suite, n as SuiteFactory, f as TaskBase, g as TaskCustom, h as TaskResult, i as TaskResultPack, e as TaskState, p as TestContext, k as TestFunction, l as TestOptions } from './tasks-c965d7f6.js';
5
5
  import { Awaitable } from '@vitest/utils';
package/dist/index.js CHANGED
@@ -248,7 +248,10 @@ function formatTitle(template, items, idx) {
248
248
  if (isObject(items[0])) {
249
249
  formatted = formatted.replace(
250
250
  /\$([$\w_.]+)/g,
251
- (_, key) => objDisplay(objectAttr(items[0], key))
251
+ (_, key) => {
252
+ var _a;
253
+ return objDisplay(objectAttr(items[0], key), (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig);
254
+ }
252
255
  // https://github.com/chaijs/chai/pull/1490
253
256
  );
254
257
  }
@@ -13,6 +13,9 @@ interface VitestRunnerConfig {
13
13
  hooks: SequenceHooks;
14
14
  setupFiles: SequenceSetupFiles;
15
15
  };
16
+ chaiConfig?: {
17
+ truncateThreshold?: number;
18
+ };
16
19
  maxConcurrency: number;
17
20
  testTimeout: number;
18
21
  hookTimeout: number;
package/dist/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { D as DoneCallback, F as File, m as HookCleanupCallback, H as HookListener, O as OnTestFailedHandler, R as RunMode, o as RuntimeContext, q as SequenceHooks, r as SequenceSetupFiles, j as Suite, S as SuiteAPI, b as SuiteCollector, n as SuiteFactory, c as SuiteHooks, T as Task, f as TaskBase, g as TaskCustom, h as TaskResult, i as TaskResultPack, e as TaskState, d as Test, a as TestAPI, p as TestContext, k as TestFunction, l as TestOptions } from './tasks-c965d7f6.js';
2
- export { V as VitestRunner, a as VitestRunnerConfig, c as VitestRunnerConstructor, b as VitestRunnerImportSource } from './runner-751eaed8.js';
2
+ export { V as VitestRunner, a as VitestRunnerConfig, c as VitestRunnerConstructor, b as VitestRunnerImportSource } from './runner-3b8473ea.js';
3
3
  import '@vitest/utils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/runner",
3
3
  "type": "module",
4
- "version": "0.30.0",
4
+ "version": "0.30.1",
5
5
  "description": "Vitest test runner",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "concordance": "^5.0.4",
37
37
  "p-limit": "^4.0.0",
38
38
  "pathe": "^1.1.0",
39
- "@vitest/utils": "0.30.0"
39
+ "@vitest/utils": "0.30.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "rimraf dist && rollup -c",