@rstest/core 0.9.5 → 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.
package/dist/browser.d.ts CHANGED
@@ -408,14 +408,16 @@ declare type BrowserViewport = {
408
408
  height: number;
409
409
  } | DevicePreset;
410
410
 
411
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | '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>;
418
419
  junit: Record<string, unknown>;
420
+ json: JsonReporterOptions;
419
421
  blob: BlobReporterOptions;
420
422
  };
421
423
 
@@ -478,6 +480,18 @@ declare interface Config {
478
480
  spacingOuter: string;
479
481
  }
480
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
+
481
495
  declare interface Constructable {
482
496
  new (...args: any[]): any;
483
497
  }
@@ -591,11 +605,14 @@ declare type CoverageOptions = {
591
605
  * This option accepts an array of wax(https://crates.io/crates/wax)-compatible glob patterns
592
606
  *
593
607
  * @default ['**\/node_modules/**',
594
- * '**\/dist/**',
595
608
  * '**\/test/**',
596
609
  * '**\/__tests__/**',
597
- * '**\/*.{test,spec}.?(c|m)[jt]s?(x)',
598
- * '**\/__mocks__/**'
610
+ * '**\/__mocks__/**',
611
+ * '**\/*.d.ts',
612
+ * '**\/*.{test,spec}.[jt]s',
613
+ * '**\/*.{test,spec}.[cm][jt]s',
614
+ * '**\/*.{test,spec}.[jt]sx',
615
+ * '**\/*.{test,spec}.[cm][jt]sx'
599
616
  * ]
600
617
  */
601
618
  exclude?: string[];
@@ -938,61 +955,7 @@ declare type ExtendConfig = Omit<LooseRstestConfig, 'projects'>;
938
955
 
939
956
  declare type ExtendConfigFn = (userConfig: Readonly<LooseRstestConfig>) => MaybePromise<ExtendConfig>;
940
957
 
941
- /**
942
- * Names of clock methods that may be faked by install.
943
- */
944
- declare type FakeMethod =
945
- | "setTimeout"
946
- | "clearTimeout"
947
- | "setImmediate"
948
- | "clearImmediate"
949
- | "setInterval"
950
- | "clearInterval"
951
- | "Date"
952
- | "nextTick"
953
- | "hrtime"
954
- | "requestAnimationFrame"
955
- | "cancelAnimationFrame"
956
- | "requestIdleCallback"
957
- | "cancelIdleCallback"
958
- | "performance"
959
- | "queueMicrotask";
960
-
961
- declare interface FakeTimerInstallOpts {
962
- /**
963
- * Installs fake timers with the specified unix epoch (default: 0)
964
- */
965
- now?: number | Date | undefined;
966
-
967
- /**
968
- * An array with names of global methods and APIs to fake. By default, `@sinonjs/fake-timers` does not replace `nextTick()` and `queueMicrotask()`.
969
- * For instance, `FakeTimers.install({ toFake: ['setTimeout', 'nextTick'] })` will fake only `setTimeout()` and `nextTick()`
970
- */
971
- toFake?: FakeMethod[] | undefined;
972
-
973
- /**
974
- * The maximum number of timers that will be run when calling runAll() (default: 1000)
975
- */
976
- loopLimit?: number | undefined;
977
-
978
- /**
979
- * 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
980
- * 20ms for every 20ms change in the real system time) (default: false)
981
- */
982
- shouldAdvanceTime?: boolean | undefined;
983
-
984
- /**
985
- * Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change
986
- * in the real system time (default: 20)
987
- */
988
- advanceTimeDelta?: number | undefined;
989
-
990
- /**
991
- * Tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by
992
- * default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. (default: false)
993
- */
994
- shouldClearNativeTimers?: boolean | undefined;
995
- }
958
+ declare type FakeMethod = "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "Date" | "nextTick" | "hrtime" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "performance" | "queueMicrotask";
996
959
 
997
960
  declare class FileCoverage implements FileCoverageData {
998
961
  constructor(data: string | FileCoverage | FileCoverageData);
@@ -1551,6 +1514,13 @@ declare interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomM
1551
1514
 
1552
1515
  declare type JsonOptions = FileOptions;
1553
1516
 
1517
+ declare type JsonReporterOptions = {
1518
+ /**
1519
+ * Write report JSON to a file instead of stdout.
1520
+ */
1521
+ outputPath?: string;
1522
+ };
1523
+
1554
1524
  declare type JsonSummaryOptions = FileOptions;
1555
1525
 
1556
1526
  declare interface LcovOnlyOptions extends FileOptions, ProjectOptions {}
@@ -2813,7 +2783,7 @@ declare interface RstestConfig {
2813
2783
  */
2814
2784
  includeTaskLocation?: boolean;
2815
2785
  plugins?: RsbuildConfig['plugins'];
2816
- source?: Pick<NonNullable<RsbuildConfig['source']>, 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude'>;
2786
+ source?: Pick<NonNullable<RsbuildConfig['source']>, 'assetsInclude' | 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude' | 'transformImport' | 'assetsInclude'>;
2817
2787
  dev?: Pick<NonNullable<RsbuildConfig['dev']>, 'writeToDisk'>;
2818
2788
  output?: RstestOutputConfig;
2819
2789
  resolve?: RsbuildConfig['resolve'];
@@ -2860,7 +2830,7 @@ declare type RstestContext = {
2860
2830
 
2861
2831
  declare type RstestExpect = ExpectStatic;
2862
2832
 
2863
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
2833
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
2864
2834
  distPath?: string | {
2865
2835
  root?: string;
2866
2836
  };
@@ -3093,7 +3063,7 @@ declare interface RstestUtilities {
3093
3063
  /**
3094
3064
  * Mocks timers using `@sinonjs/fake-timers`.
3095
3065
  */
3096
- useFakeTimers: (config?: FakeTimerInstallOpts) => RstestUtilities;
3066
+ useFakeTimers: (config?: Config_2) => RstestUtilities;
3097
3067
  useRealTimers: () => RstestUtilities;
3098
3068
  isFakeTimers: () => boolean;
3099
3069
  /**
@@ -1,5 +1,5 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
2
+ import { __webpack_require__ } from "./0~rslib-runtime.js";
3
3
  import "./1255.js";
4
4
  import { color as logger_color } from "./6830.js";
5
5
  import { formatTestError } from "./7552.js";
package/dist/index.d.ts CHANGED
@@ -339,14 +339,16 @@ declare type BrowserViewport = {
339
339
  height: number;
340
340
  } | DevicePreset;
341
341
 
342
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | '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>;
349
350
  junit: Record<string, unknown>;
351
+ json: JsonReporterOptions;
350
352
  blob: BlobReporterOptions;
351
353
  };
352
354
 
@@ -469,6 +471,18 @@ declare interface Config {
469
471
  spacingOuter: string;
470
472
  }
471
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
+
472
486
  declare interface Constructable {
473
487
  new (...args: any[]): any;
474
488
  }
@@ -582,11 +596,14 @@ export declare type CoverageOptions = {
582
596
  * This option accepts an array of wax(https://crates.io/crates/wax)-compatible glob patterns
583
597
  *
584
598
  * @default ['**\/node_modules/**',
585
- * '**\/dist/**',
586
599
  * '**\/test/**',
587
600
  * '**\/__tests__/**',
588
- * '**\/*.{test,spec}.?(c|m)[jt]s?(x)',
589
- * '**\/__mocks__/**'
601
+ * '**\/__mocks__/**',
602
+ * '**\/*.d.ts',
603
+ * '**\/*.{test,spec}.[jt]s',
604
+ * '**\/*.{test,spec}.[cm][jt]s',
605
+ * '**\/*.{test,spec}.[jt]sx',
606
+ * '**\/*.{test,spec}.[cm][jt]sx'
590
607
  * ]
591
608
  */
592
609
  exclude?: string[];
@@ -789,15 +806,26 @@ export declare function defineConfig(config: RstestConfigAsyncFn): RstestConfigA
789
806
  export declare function defineConfig(config: RstestConfigExport): RstestConfigExport;
790
807
 
791
808
  /**
792
- * This function helps you to autocomplete configuration types.
793
- * It accepts a Rstest project config object, or a function that returns a config.
809
+ * This function helps you to autocomplete inline project configuration types.
810
+ */
811
+ export declare function defineInlineProject(config: InlineProjectConfig): InlineProjectConfig;
812
+
813
+ /**
814
+ * This function helps you to autocomplete project configuration types.
815
+ * It accepts an inline or nested Rstest project config object, or a function that returns one.
794
816
  */
795
- export declare function defineProject(config: ProjectConfig | NestedProjectConfig): ProjectConfig | NestedProjectConfig;
817
+ export declare function defineProject(config: ExportedProjectConfig): ExportedProjectConfig;
818
+
819
+ export declare function defineProject(config: NestedProjectConfig): NestedProjectConfig;
796
820
 
797
821
  export declare function defineProject(config: ProjectConfigSyncFn): ProjectConfigSyncFn;
798
822
 
823
+ export declare function defineProject(config: NestedProjectConfigSyncFn): NestedProjectConfigSyncFn;
824
+
799
825
  export declare function defineProject(config: ProjectConfigAsyncFn): ProjectConfigAsyncFn;
800
826
 
827
+ export declare function defineProject(config: NestedProjectConfigAsyncFn): NestedProjectConfigAsyncFn;
828
+
801
829
  export declare type Describe = DescribeFn & {
802
830
  each: DescribeEachFn;
803
831
  for: DescribeForFn;
@@ -943,65 +971,13 @@ declare interface ExpectStatic_2 extends Chai.ExpectStatic, Matchers, Asymmetric
943
971
  not: AsymmetricMatchersContaining;
944
972
  }
945
973
 
974
+ declare type ExportedProjectConfig = ProjectConfig;
975
+
946
976
  export declare type ExtendConfig = Omit<LooseRstestConfig, 'projects'>;
947
977
 
948
978
  export declare type ExtendConfigFn = (userConfig: Readonly<LooseRstestConfig>) => MaybePromise<ExtendConfig>;
949
979
 
950
- /**
951
- * Names of clock methods that may be faked by install.
952
- */
953
- declare type FakeMethod =
954
- | "setTimeout"
955
- | "clearTimeout"
956
- | "setImmediate"
957
- | "clearImmediate"
958
- | "setInterval"
959
- | "clearInterval"
960
- | "Date"
961
- | "nextTick"
962
- | "hrtime"
963
- | "requestAnimationFrame"
964
- | "cancelAnimationFrame"
965
- | "requestIdleCallback"
966
- | "cancelIdleCallback"
967
- | "performance"
968
- | "queueMicrotask";
969
-
970
- declare interface FakeTimerInstallOpts {
971
- /**
972
- * Installs fake timers with the specified unix epoch (default: 0)
973
- */
974
- now?: number | Date | undefined;
975
-
976
- /**
977
- * An array with names of global methods and APIs to fake. By default, `@sinonjs/fake-timers` does not replace `nextTick()` and `queueMicrotask()`.
978
- * For instance, `FakeTimers.install({ toFake: ['setTimeout', 'nextTick'] })` will fake only `setTimeout()` and `nextTick()`
979
- */
980
- toFake?: FakeMethod[] | undefined;
981
-
982
- /**
983
- * The maximum number of timers that will be run when calling runAll() (default: 1000)
984
- */
985
- loopLimit?: number | undefined;
986
-
987
- /**
988
- * 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
989
- * 20ms for every 20ms change in the real system time) (default: false)
990
- */
991
- shouldAdvanceTime?: boolean | undefined;
992
-
993
- /**
994
- * Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change
995
- * in the real system time (default: 20)
996
- */
997
- advanceTimeDelta?: number | undefined;
998
-
999
- /**
1000
- * Tells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by
1001
- * default, leading to potentially unexpected behavior if timers existed prior to installing FakeTimers. (default: false)
1002
- */
1003
- shouldClearNativeTimers?: boolean | undefined;
1004
- }
980
+ declare type FakeMethod = "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "setInterval" | "clearInterval" | "Date" | "nextTick" | "hrtime" | "requestAnimationFrame" | "cancelAnimationFrame" | "requestIdleCallback" | "cancelIdleCallback" | "performance" | "queueMicrotask";
1005
981
 
1006
982
  declare class FileCoverage implements FileCoverageData {
1007
983
  constructor(data: string | FileCoverage | FileCoverageData);
@@ -1551,6 +1527,13 @@ declare interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomM
1551
1527
 
1552
1528
  declare type JsonOptions = FileOptions;
1553
1529
 
1530
+ declare type JsonReporterOptions = {
1531
+ /**
1532
+ * Write report JSON to a file instead of stdout.
1533
+ */
1534
+ outputPath?: string;
1535
+ };
1536
+
1554
1537
  declare type JsonSummaryOptions = FileOptions;
1555
1538
 
1556
1539
  declare interface LcovOnlyOptions extends FileOptions, ProjectOptions {}
@@ -1568,6 +1551,7 @@ declare type ListCommandOptions = {
1568
1551
  json?: boolean | string;
1569
1552
  includeSuites?: boolean;
1570
1553
  printLocation?: boolean;
1554
+ summary?: boolean;
1571
1555
  };
1572
1556
 
1573
1557
  declare type ListCommandResult = {
@@ -2262,9 +2246,13 @@ declare interface MockSettledResultRejected_2 {
2262
2246
  declare type NamesIndex = number;
2263
2247
 
2264
2248
  declare type NestedProjectConfig = {
2265
- projects: (ProjectConfig | string)[];
2249
+ projects: (InlineProjectConfig | string)[];
2266
2250
  };
2267
2251
 
2252
+ declare type NestedProjectConfigAsyncFn = () => Promise<NestedProjectConfig>;
2253
+
2254
+ declare type NestedProjectConfigSyncFn = () => NestedProjectConfig;
2255
+
2268
2256
  declare interface NewPlugin {
2269
2257
  serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string;
2270
2258
  test: Test;
@@ -2405,9 +2393,9 @@ export declare type ProjectConfig = Omit<RstestConfig, 'projects' | 'reporters'
2405
2393
  output?: Omit<RstestOutputConfig, 'distPath'>;
2406
2394
  };
2407
2395
 
2408
- declare type ProjectConfigAsyncFn = () => Promise<ProjectConfig | NestedProjectConfig>;
2396
+ declare type ProjectConfigAsyncFn = () => Promise<ExportedProjectConfig>;
2409
2397
 
2410
- declare type ProjectConfigSyncFn = () => ProjectConfig | NestedProjectConfig;
2398
+ declare type ProjectConfigSyncFn = () => ExportedProjectConfig;
2411
2399
 
2412
2400
  declare type ProjectContext = {
2413
2401
  name: string;
@@ -2794,7 +2782,7 @@ export declare interface RstestConfig {
2794
2782
  */
2795
2783
  includeTaskLocation?: boolean;
2796
2784
  plugins?: RsbuildConfig['plugins'];
2797
- source?: Pick<NonNullable<RsbuildConfig['source']>, 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude'>;
2785
+ source?: Pick<NonNullable<RsbuildConfig['source']>, 'assetsInclude' | 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude' | 'transformImport' | 'assetsInclude'>;
2798
2786
  dev?: Pick<NonNullable<RsbuildConfig['dev']>, 'writeToDisk'>;
2799
2787
  output?: RstestOutputConfig;
2800
2788
  resolve?: RsbuildConfig['resolve'];
@@ -2855,7 +2843,7 @@ declare type RstestInstance = {
2855
2843
  }) => Promise<void>;
2856
2844
  };
2857
2845
 
2858
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
2846
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
2859
2847
  distPath?: string | {
2860
2848
  root?: string;
2861
2849
  };
@@ -3088,7 +3076,7 @@ export declare interface RstestUtilities {
3088
3076
  /**
3089
3077
  * Mocks timers using `@sinonjs/fake-timers`.
3090
3078
  */
3091
- useFakeTimers: (config?: FakeTimerInstallOpts) => RstestUtilities;
3079
+ useFakeTimers: (config?: Config_2) => RstestUtilities;
3092
3080
  useRealTimers: () => RstestUtilities;
3093
3081
  isFakeTimers: () => boolean;
3094
3082
  /**
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import "node:module";
2
2
  export { afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rstest, test } from "./5040.js";
3
- export { createRstest, defineConfig, defineProject, initCli, loadConfig, mergeProjectConfig, mergeRstestConfig, runCLI } from "./3145.js";
3
+ export { createRstest, defineConfig, defineInlineProject, defineProject, initCli, loadConfig, mergeProjectConfig, mergeRstestConfig, runCLI } from "./3145.js";
package/dist/worker.d.ts CHANGED
@@ -83,14 +83,16 @@ declare type BrowserViewport = {
83
83
  height: number;
84
84
  } | DevicePreset;
85
85
 
86
- declare type BuiltInReporterNames = 'default' | 'verbose' | 'md' | 'github-actions' | 'junit' | '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>;
93
94
  junit: Record<string, unknown>;
95
+ json: JsonReporterOptions;
94
96
  blob: BlobReporterOptions;
95
97
  };
96
98
 
@@ -220,11 +222,14 @@ declare type CoverageOptions = {
220
222
  * This option accepts an array of wax(https://crates.io/crates/wax)-compatible glob patterns
221
223
  *
222
224
  * @default ['**\/node_modules/**',
223
- * '**\/dist/**',
224
225
  * '**\/test/**',
225
226
  * '**\/__tests__/**',
226
- * '**\/*.{test,spec}.?(c|m)[jt]s?(x)',
227
- * '**\/__mocks__/**'
227
+ * '**\/__mocks__/**',
228
+ * '**\/*.d.ts',
229
+ * '**\/*.{test,spec}.[jt]s',
230
+ * '**\/*.{test,spec}.[cm][jt]s',
231
+ * '**\/*.{test,spec}.[jt]sx',
232
+ * '**\/*.{test,spec}.[cm][jt]sx'
228
233
  * ]
229
234
  */
230
235
  exclude?: string[];
@@ -449,6 +454,13 @@ declare type InlineProjectConfig = ProjectConfig & {
449
454
 
450
455
  declare type JsonOptions = FileOptions;
451
456
 
457
+ declare type JsonReporterOptions = {
458
+ /**
459
+ * Write report JSON to a file instead of stdout.
460
+ */
461
+ outputPath?: string;
462
+ };
463
+
452
464
  declare type JsonSummaryOptions = FileOptions;
453
465
 
454
466
  declare interface LcovOnlyOptions extends FileOptions, ProjectOptions {}
@@ -1025,7 +1037,7 @@ declare interface RstestConfig {
1025
1037
  */
1026
1038
  includeTaskLocation?: boolean;
1027
1039
  plugins?: RsbuildConfig['plugins'];
1028
- source?: Pick<NonNullable<RsbuildConfig['source']>, 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude'>;
1040
+ source?: Pick<NonNullable<RsbuildConfig['source']>, 'assetsInclude' | 'define' | 'tsconfigPath' | 'decorators' | 'include' | 'exclude' | 'transformImport' | 'assetsInclude'>;
1029
1041
  dev?: Pick<NonNullable<RsbuildConfig['dev']>, 'writeToDisk'>;
1030
1042
  output?: RstestOutputConfig;
1031
1043
  resolve?: RsbuildConfig['resolve'];
@@ -1070,7 +1082,7 @@ declare type RstestContext = {
1070
1082
  };
1071
1083
  };
1072
1084
 
1073
- declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'externals' | 'cleanDistPath' | 'module'> & {
1085
+ declare type RstestOutputConfig = Pick<NonNullable<RsbuildConfig['output']>, 'cssModules' | 'emitAssets' | 'externals' | 'cleanDistPath' | 'module'> & {
1074
1086
  distPath?: string | {
1075
1087
  root?: string;
1076
1088
  };
package/dist/worker.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
2
+ import { __webpack_require__ } from "./0~rslib-runtime.js";
3
3
  import { existsSync, promises } from "node:fs";
4
4
  import "./1255.js";
5
5
  import { createWorkerMetaMessage, createBirpc } from "./1983.js";
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.5",
3
+ "version": "0.9.7",
4
4
  "description": "The Rsbuild-based test tool.",
5
5
  "keywords": [
6
6
  "rstest",
@@ -54,29 +54,28 @@
54
54
  "importMeta.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@rsbuild/core": "2.0.0-beta.10",
57
+ "@rsbuild/core": "2.0.0-rc.1",
58
58
  "@types/chai": "^5.2.3",
59
59
  "tinypool": "^2.1.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/code-frame": "^7.29.0",
63
- "@clack/prompts": "^1.1.0",
63
+ "@clack/prompts": "^1.2.0",
64
64
  "@jridgewell/trace-mapping": "0.3.31",
65
- "@microsoft/api-extractor": "^7.57.7",
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.0",
70
- "@sinonjs/fake-timers": "^15.1.1",
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.20260317.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",
@@ -85,19 +84,19 @@
85
84
  "cac": "^7.0.0",
86
85
  "chai": "^6.2.2",
87
86
  "chokidar": "^5.0.0",
88
- "happy-dom": "^20.8.8",
89
- "jsdom": "^28.1.0",
87
+ "happy-dom": "^20.8.9",
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",
93
92
  "picocolors": "^1.1.1",
94
93
  "picomatch": "^4.0.4",
95
- "rslog": "^2.1.0",
94
+ "rslog": "^2.1.1",
96
95
  "source-map-support": "^0.5.21",
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",
@@ -127,6 +126,6 @@
127
126
  "build": "rslib build && npx prettier ./LICENSE.md --write",
128
127
  "dev": "cross-env SOURCEMAP=true rslib build --watch",
129
128
  "test": "npx rstest --globals",
130
- "typecheck": "tsc --noEmit"
129
+ "typecheck": "pnpm -w exec tsc --noEmit -p packages/core/tsconfig.json"
131
130
  }
132
131
  }