@rstest/core 0.9.6 → 0.9.7

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.
@@ -1,6 +1,6 @@
1
1
  import { __webpack_require__ } from "./723.js";
2
2
  import "./723.js";
3
- var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
3
+ var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
4
4
  var comma = ",".charCodeAt(0);
5
5
  var semicolon = ";".charCodeAt(0);
6
6
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -79,7 +79,7 @@ function encode(decoded) {
79
79
  }
80
80
  return writer.flush();
81
81
  }
82
- var magic_string_es_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
82
+ var magic_string_es_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
83
83
  class BitSet {
84
84
  constructor(arg){
85
85
  this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
@@ -167,11 +167,9 @@ __webpack_require__.add({
167
167
  */ var base64 = __webpack_require__("../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js");
168
168
  var ieee754 = __webpack_require__("../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js");
169
169
  var customInspectSymbol = 'function' == typeof Symbol && 'function' == typeof Symbol['for'] ? Symbol['for']('nodejs.util.inspect.custom') : null;
170
- exports.Buffer = Buffer;
171
- exports.SlowBuffer = SlowBuffer;
172
- exports.INSPECT_MAX_BYTES = 50;
170
+ exports.hp = Buffer;
171
+ exports.IS = 50;
173
172
  var K_MAX_LENGTH = 0x7fffffff;
174
- exports.kMaxLength = K_MAX_LENGTH;
175
173
  Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();
176
174
  if (!Buffer.TYPED_ARRAY_SUPPORT && "u" > typeof console && 'function' == typeof console.error) console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
177
175
  function typedArraySupport() {
@@ -307,10 +305,6 @@ __webpack_require__.add({
307
305
  if (length >= K_MAX_LENGTH) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + ' bytes');
308
306
  return 0 | length;
309
307
  }
310
- function SlowBuffer(length) {
311
- if (+length != length) length = 0;
312
- return Buffer.alloc(+length);
313
- }
314
308
  Buffer.isBuffer = function isBuffer(b) {
315
309
  return null != b && true === b._isBuffer && b !== Buffer.prototype;
316
310
  };
@@ -480,7 +474,7 @@ __webpack_require__.add({
480
474
  };
481
475
  Buffer.prototype.inspect = function inspect() {
482
476
  var str = '';
483
- var max = exports.INSPECT_MAX_BYTES;
477
+ var max = exports.IS;
484
478
  str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
485
479
  if (this.length > max) str += ' ... ';
486
480
  return '<Buffer ' + str + '>';
@@ -4910,7 +4904,7 @@ function inspectArray(array, options) {
4910
4904
  ]), options, inspectProperty);
4911
4905
  return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;
4912
4906
  }
4913
- var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
4907
+ var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
4914
4908
  const getArrayName = (array)=>{
4915
4909
  if ('function' == typeof Buffer && array instanceof Buffer) return 'Buffer';
4916
4910
  if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
@@ -6829,7 +6823,7 @@ new Set();
6829
6823
  function dist_isMockFunction(fn) {
6830
6824
  return "function" == typeof fn && "_isMockFunction" in fn && fn._isMockFunction;
6831
6825
  }
6832
- var error_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
6826
+ var error_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
6833
6827
  const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
6834
6828
  const IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
6835
6829
  function isImmutable(v) {
@@ -6929,7 +6923,7 @@ function processError(_err, diffOptions, seen = new WeakSet()) {
6929
6923
  return serializeValue(new Error(`Failed to fully serialize error: ${null == e ? void 0 : e.message}\nInner error message: ${null == err ? void 0 : err.message}`));
6930
6924
  }
6931
6925
  }
6932
- var chai_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
6926
+ var chai_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
6933
6927
  var __defProp = Object.defineProperty;
6934
6928
  var __name = (target, value)=>__defProp(target, "name", {
6935
6929
  value,
@@ -11958,7 +11952,7 @@ const castArray = (arr)=>{
11958
11952
  const getTaskNames = (test)=>(test.parentNames || []).concat(test.name).filter(Boolean);
11959
11953
  const getTaskNameWithPrefix = (test, delimiter = TEST_DELIMITER)=>getTaskNames(test).join(delimiter ? ` ${delimiter} ` : ' ');
11960
11954
  void 0 !== helper_process && helper_process.versions?.deno;
11961
- var node_modules_chai_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
11955
+ var node_modules_chai_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["hp"];
11962
11956
  var chai_defProp = Object.defineProperty;
11963
11957
  var __defNormalProp = (obj, key, value)=>key in obj ? chai_defProp(obj, key, {
11964
11958
  enumerable: true,
@@ -356,10 +356,11 @@ declare type BrowserViewport = {
356
356
  height: number;
357
357
  } | DevicePreset;
358
358
 
359
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
359
+ declare type BuiltInReporterNames = 'default' | 'dot' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
360
360
 
361
361
  declare type BuiltinReporterOptions = {
362
362
  default: DefaultReporterOptions;
363
+ dot: Pick<DefaultReporterOptions, 'logger' | 'summary'>;
363
364
  verbose: VerboseReporterOptions;
364
365
  md: MdReporterOptions;
365
366
  'github-actions': Record<string, unknown>;
@@ -422,6 +423,18 @@ declare interface Config {
422
423
  spacingOuter: string;
423
424
  }
424
425
 
426
+ declare type Config_2 = {
427
+ now?: number | Date;
428
+ toFake?: FakeMethod[];
429
+ toNotFake?: FakeMethod[];
430
+ loopLimit?: number;
431
+ shouldAdvanceTime?: boolean;
432
+ advanceTimeDelta?: number;
433
+ shouldClearNativeTimers?: boolean;
434
+ ignoreMissingTimers?: boolean;
435
+ target?: object;
436
+ };
437
+
425
438
  declare interface Constructable {
426
439
  new (...args: any[]): any;
427
440
  }
@@ -842,61 +855,7 @@ declare type ExtendConfig = Omit<LooseRstestConfig, 'projects'>;
842
855
 
843
856
  declare type ExtendConfigFn = (userConfig: Readonly<LooseRstestConfig>) => MaybePromise<ExtendConfig>;
844
857
 
845
- /**
846
- * Names of clock methods that may be faked by install.
847
- */
848
- declare type FakeMethod =
849
- | "setTimeout"
850
- | "clearTimeout"
851
- | "setImmediate"
852
- | "clearImmediate"
853
- | "setInterval"
854
- | "clearInterval"
855
- | "Date"
856
- | "nextTick"
857
- | "hrtime"
858
- | "requestAnimationFrame"
859
- | "cancelAnimationFrame"
860
- | "requestIdleCallback"
861
- | "cancelIdleCallback"
862
- | "performance"
863
- | "queueMicrotask";
864
-
865
- declare interface FakeTimerInstallOpts {
866
- /**
867
- * Installs fake timers with the specified unix epoch (default: 0)
868
- */
869
- now?: number | Date | undefined;
870
-
871
- /**
872
- * An array with names of global methods and APIs to fake. By default, `@sinonjs/fake-timers` does not replace `nextTick()` and `queueMicrotask()`.
873
- * For instance, `FakeTimers.install({ toFake: ['setTimeout', 'nextTick'] })` will fake only `setTimeout()` and `nextTick()`
874
- */
875
- toFake?: FakeMethod[] | undefined;
876
-
877
- /**
878
- * The maximum number of timers that will be run when calling runAll() (default: 1000)
879
- */
880
- loopLimit?: number | undefined;
881
-
882
- /**
883
- * Tells @sinonjs/fake-timers to increment mocked time automatically based on the real system time shift (e.g. the mocked time will be incremented by
884
- * 20ms for every 20ms change in the real system time) (default: false)
885
- */
886
- shouldAdvanceTime?: boolean | undefined;
887
-
888
- /**
889
- * Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change
890
- * in the real system time (default: 20)
891
- */
892
- advanceTimeDelta?: number | undefined;
893
-
894
- /**
895
- * Tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by
896
- * default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. (default: false)
897
- */
898
- shouldClearNativeTimers?: boolean | undefined;
899
- }
858
+ declare type FakeMethod = "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "Date" | "nextTick" | "hrtime" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "performance" | "queueMicrotask";
900
859
 
901
860
  declare class FileCoverage implements FileCoverageData {
902
861
  constructor(data: string | FileCoverage | FileCoverageData);
@@ -2396,7 +2355,7 @@ declare type RstestContext = {
2396
2355
 
2397
2356
  declare type RstestExpect = ExpectStatic;
2398
2357
 
2399
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
2358
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
2400
2359
  distPath?: string | {
2401
2360
  root?: string;
2402
2361
  };
@@ -2629,7 +2588,7 @@ declare interface RstestUtilities {
2629
2588
  /**
2630
2589
  * Mocks timers using `@sinonjs/fake-timers`.
2631
2590
  */
2632
- useFakeTimers: (config?: FakeTimerInstallOpts) => RstestUtilities;
2591
+ useFakeTimers: (config?: Config_2) => RstestUtilities;
2633
2592
  useRealTimers: () => RstestUtilities;
2634
2593
  isFakeTimers: () => boolean;
2635
2594
  /**
package/dist/browser.d.ts CHANGED
@@ -408,10 +408,11 @@ declare type BrowserViewport = {
408
408
  height: number;
409
409
  } | DevicePreset;
410
410
 
411
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
411
+ declare type BuiltInReporterNames = 'default' | 'dot' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
412
412
 
413
413
  declare type BuiltinReporterOptions = {
414
414
  default: DefaultReporterOptions;
415
+ dot: Pick<DefaultReporterOptions, 'logger' | 'summary'>;
415
416
  verbose: VerboseReporterOptions;
416
417
  md: MdReporterOptions;
417
418
  'github-actions': Record<string, unknown>;
@@ -479,6 +480,18 @@ declare interface Config {
479
480
  spacingOuter: string;
480
481
  }
481
482
 
483
+ declare type Config_2 = {
484
+ now?: number | Date;
485
+ toFake?: FakeMethod[];
486
+ toNotFake?: FakeMethod[];
487
+ loopLimit?: number;
488
+ shouldAdvanceTime?: boolean;
489
+ advanceTimeDelta?: number;
490
+ shouldClearNativeTimers?: boolean;
491
+ ignoreMissingTimers?: boolean;
492
+ target?: object;
493
+ };
494
+
482
495
  declare interface Constructable {
483
496
  new (...args: any[]): any;
484
497
  }
@@ -942,61 +955,7 @@ declare type ExtendConfig = Omit<LooseRstestConfig, 'projects'>;
942
955
 
943
956
  declare type ExtendConfigFn = (userConfig: Readonly<LooseRstestConfig>) => MaybePromise<ExtendConfig>;
944
957
 
945
- /**
946
- * Names of clock methods that may be faked by install.
947
- */
948
- declare type FakeMethod =
949
- | "setTimeout"
950
- | "clearTimeout"
951
- | "setImmediate"
952
- | "clearImmediate"
953
- | "setInterval"
954
- | "clearInterval"
955
- | "Date"
956
- | "nextTick"
957
- | "hrtime"
958
- | "requestAnimationFrame"
959
- | "cancelAnimationFrame"
960
- | "requestIdleCallback"
961
- | "cancelIdleCallback"
962
- | "performance"
963
- | "queueMicrotask";
964
-
965
- declare interface FakeTimerInstallOpts {
966
- /**
967
- * Installs fake timers with the specified unix epoch (default: 0)
968
- */
969
- now?: number | Date | undefined;
970
-
971
- /**
972
- * An array with names of global methods and APIs to fake. By default, `@sinonjs/fake-timers` does not replace `nextTick()` and `queueMicrotask()`.
973
- * For instance, `FakeTimers.install({ toFake: ['setTimeout', 'nextTick'] })` will fake only `setTimeout()` and `nextTick()`
974
- */
975
- toFake?: FakeMethod[] | undefined;
976
-
977
- /**
978
- * The maximum number of timers that will be run when calling runAll() (default: 1000)
979
- */
980
- loopLimit?: number | undefined;
981
-
982
- /**
983
- * Tells @sinonjs/fake-timers to increment mocked time automatically based on the real system time shift (e.g. the mocked time will be incremented by
984
- * 20ms for every 20ms change in the real system time) (default: false)
985
- */
986
- shouldAdvanceTime?: boolean | undefined;
987
-
988
- /**
989
- * Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change
990
- * in the real system time (default: 20)
991
- */
992
- advanceTimeDelta?: number | undefined;
993
-
994
- /**
995
- * Tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by
996
- * default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. (default: false)
997
- */
998
- shouldClearNativeTimers?: boolean | undefined;
999
- }
958
+ declare type FakeMethod = "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "Date" | "nextTick" | "hrtime" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "performance" | "queueMicrotask";
1000
959
 
1001
960
  declare class FileCoverage implements FileCoverageData {
1002
961
  constructor(data: string | FileCoverage | FileCoverageData);
@@ -2871,7 +2830,7 @@ declare type RstestContext = {
2871
2830
 
2872
2831
  declare type RstestExpect = ExpectStatic;
2873
2832
 
2874
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
2833
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
2875
2834
  distPath?: string | {
2876
2835
  root?: string;
2877
2836
  };
@@ -3104,7 +3063,7 @@ declare interface RstestUtilities {
3104
3063
  /**
3105
3064
  * Mocks timers using `@sinonjs/fake-timers`.
3106
3065
  */
3107
- useFakeTimers: (config?: FakeTimerInstallOpts) => RstestUtilities;
3066
+ useFakeTimers: (config?: Config_2) => RstestUtilities;
3108
3067
  useRealTimers: () => RstestUtilities;
3109
3068
  isFakeTimers: () => boolean;
3110
3069
  /**
package/dist/index.d.ts CHANGED
@@ -339,10 +339,11 @@ declare type BrowserViewport = {
339
339
  height: number;
340
340
  } | DevicePreset;
341
341
 
342
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
342
+ declare type BuiltInReporterNames = 'default' | 'dot' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
343
343
 
344
344
  declare type BuiltinReporterOptions = {
345
345
  default: DefaultReporterOptions;
346
+ dot: Pick<DefaultReporterOptions, 'logger' | 'summary'>;
346
347
  verbose: VerboseReporterOptions;
347
348
  md: MdReporterOptions;
348
349
  'github-actions': Record<string, unknown>;
@@ -470,6 +471,18 @@ declare interface Config {
470
471
  spacingOuter: string;
471
472
  }
472
473
 
474
+ declare type Config_2 = {
475
+ now?: number | Date;
476
+ toFake?: FakeMethod[];
477
+ toNotFake?: FakeMethod[];
478
+ loopLimit?: number;
479
+ shouldAdvanceTime?: boolean;
480
+ advanceTimeDelta?: number;
481
+ shouldClearNativeTimers?: boolean;
482
+ ignoreMissingTimers?: boolean;
483
+ target?: object;
484
+ };
485
+
473
486
  declare interface Constructable {
474
487
  new (...args: any[]): any;
475
488
  }
@@ -964,61 +977,7 @@ export declare type ExtendConfig = Omit<LooseRstestConfig, 'projects'>;
964
977
 
965
978
  export declare type ExtendConfigFn = (userConfig: Readonly<LooseRstestConfig>) => MaybePromise<ExtendConfig>;
966
979
 
967
- /**
968
- * Names of clock methods that may be faked by install.
969
- */
970
- declare type FakeMethod =
971
- | "setTimeout"
972
- | "clearTimeout"
973
- | "setImmediate"
974
- | "clearImmediate"
975
- | "setInterval"
976
- | "clearInterval"
977
- | "Date"
978
- | "nextTick"
979
- | "hrtime"
980
- | "requestAnimationFrame"
981
- | "cancelAnimationFrame"
982
- | "requestIdleCallback"
983
- | "cancelIdleCallback"
984
- | "performance"
985
- | "queueMicrotask";
986
-
987
- declare interface FakeTimerInstallOpts {
988
- /**
989
- * Installs fake timers with the specified unix epoch (default: 0)
990
- */
991
- now?: number | Date | undefined;
992
-
993
- /**
994
- * An array with names of global methods and APIs to fake. By default, `@sinonjs/fake-timers` does not replace `nextTick()` and `queueMicrotask()`.
995
- * For instance, `FakeTimers.install({ toFake: ['setTimeout', 'nextTick'] })` will fake only `setTimeout()` and `nextTick()`
996
- */
997
- toFake?: FakeMethod[] | undefined;
998
-
999
- /**
1000
- * The maximum number of timers that will be run when calling runAll() (default: 1000)
1001
- */
1002
- loopLimit?: number | undefined;
1003
-
1004
- /**
1005
- * Tells @sinonjs/fake-timers to increment mocked time automatically based on the real system time shift (e.g. the mocked time will be incremented by
1006
- * 20ms for every 20ms change in the real system time) (default: false)
1007
- */
1008
- shouldAdvanceTime?: boolean | undefined;
1009
-
1010
- /**
1011
- * Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change
1012
- * in the real system time (default: 20)
1013
- */
1014
- advanceTimeDelta?: number | undefined;
1015
-
1016
- /**
1017
- * Tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by
1018
- * default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. (default: false)
1019
- */
1020
- shouldClearNativeTimers?: boolean | undefined;
1021
- }
980
+ declare type FakeMethod = "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "Date" | "nextTick" | "hrtime" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "performance" | "queueMicrotask";
1022
981
 
1023
982
  declare class FileCoverage implements FileCoverageData {
1024
983
  constructor(data: string | FileCoverage | FileCoverageData);
@@ -1592,6 +1551,7 @@ declare type ListCommandOptions = {
1592
1551
  json?: boolean | string;
1593
1552
  includeSuites?: boolean;
1594
1553
  printLocation?: boolean;
1554
+ summary?: boolean;
1595
1555
  };
1596
1556
 
1597
1557
  declare type ListCommandResult = {
@@ -2883,7 +2843,7 @@ declare type RstestInstance = {
2883
2843
  }) => Promise<void>;
2884
2844
  };
2885
2845
 
2886
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
2846
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
2887
2847
  distPath?: string | {
2888
2848
  root?: string;
2889
2849
  };
@@ -3116,7 +3076,7 @@ export declare interface RstestUtilities {
3116
3076
  /**
3117
3077
  * Mocks timers using `@sinonjs/fake-timers`.
3118
3078
  */
3119
- useFakeTimers: (config?: FakeTimerInstallOpts) => RstestUtilities;
3079
+ useFakeTimers: (config?: Config_2) => RstestUtilities;
3120
3080
  useRealTimers: () => RstestUtilities;
3121
3081
  isFakeTimers: () => boolean;
3122
3082
  /**
package/dist/worker.d.ts CHANGED
@@ -83,10 +83,11 @@ declare type BrowserViewport = {
83
83
  height: number;
84
84
  } | DevicePreset;
85
85
 
86
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
86
+ declare type BuiltInReporterNames = 'default' | 'dot' | 'verbose' | 'md' | 'github-actions' | 'junit' | 'json' | 'blob';
87
87
 
88
88
  declare type BuiltinReporterOptions = {
89
89
  default: DefaultReporterOptions;
90
+ dot: Pick<DefaultReporterOptions, 'logger' | 'summary'>;
90
91
  verbose: VerboseReporterOptions;
91
92
  md: MdReporterOptions;
92
93
  'github-actions': Record<string, unknown>;
@@ -1081,7 +1082,7 @@ declare type RstestContext = {
1081
1082
  };
1082
1083
  };
1083
1084
 
1084
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
1085
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
1085
1086
  distPath?: string | {
1086
1087
  root?: string;
1087
1088
  };
package/globals.d.ts CHANGED
@@ -13,4 +13,5 @@ declare global {
13
13
  const rs: typeof import('@rstest/core')['rs'];
14
14
  const rstest: typeof import('@rstest/core')['rstest'];
15
15
  }
16
+
16
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstest/core",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "The Rsbuild-based test tool.",
5
5
  "keywords": [
6
6
  "rstest",
@@ -54,7 +54,7 @@
54
54
  "importMeta.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@rsbuild/core": "2.0.0-rc.0",
57
+ "@rsbuild/core": "2.0.0-rc.1",
58
58
  "@types/chai": "^5.2.3",
59
59
  "tinypool": "^2.1.0"
60
60
  },
@@ -62,21 +62,20 @@
62
62
  "@babel/code-frame": "^7.29.0",
63
63
  "@clack/prompts": "^1.2.0",
64
64
  "@jridgewell/trace-mapping": "0.3.31",
65
- "@microsoft/api-extractor": "^7.57.8",
65
+ "@microsoft/api-extractor": "^7.58.1",
66
66
  "@rsbuild/plugin-less": "^1.6.2",
67
67
  "@rsbuild/plugin-node-polyfill": "^1.4.4",
68
68
  "@rsbuild/plugin-sass": "^1.5.1",
69
- "@rslib/core": "0.20.2",
70
- "@sinonjs/fake-timers": "^15.2.0",
69
+ "@rslib/core": "0.21.0",
70
+ "@sinonjs/fake-timers": "^15.3.0",
71
71
  "@types/babel__code-frame": "^7.27.0",
72
72
  "@types/istanbul-lib-coverage": "^2.0.6",
73
73
  "@types/istanbul-lib-report": "^3.0.3",
74
74
  "@types/istanbul-reports": "^3.0.4",
75
75
  "@types/jsdom": "^21.1.7",
76
- "@types/picomatch": "^4.0.2",
77
- "@types/sinonjs__fake-timers": "^8.1.5",
76
+ "@types/picomatch": "^4.0.3",
78
77
  "@types/source-map-support": "^0.5.10",
79
- "@typescript/native-preview": "7.0.0-dev.20260331.1",
78
+ "@typescript/native-preview": "7.0.0-dev.20260408.1",
80
79
  "@vitest/expect": "^3.2.4",
81
80
  "@vitest/pretty-format": "^3.2.4",
82
81
  "@vitest/snapshot": "^3.2.4",
@@ -86,7 +85,7 @@
86
85
  "chai": "^6.2.2",
87
86
  "chokidar": "^5.0.0",
88
87
  "happy-dom": "^20.8.9",
89
- "jsdom": "^29.0.1",
88
+ "jsdom": "^29.0.2",
90
89
  "memfs": "^4.57.1",
91
90
  "package-manager-detector": "^1.6.0",
92
91
  "pathe": "^2.0.3",
@@ -97,7 +96,7 @@
97
96
  "stacktrace-parser": "0.1.11",
98
97
  "std-env": "^4.0.0",
99
98
  "strip-ansi": "^7.2.0",
100
- "tinyglobby": "^0.2.15",
99
+ "tinyglobby": "^0.2.16",
101
100
  "tinyspy": "^4.0.4",
102
101
  "url-extras": "^0.1.0",
103
102
  "webpack": "^5.105.4",