@rstest/adapter-rsbuild 0.2.2 → 0.2.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/dist/index.d.ts CHANGED
@@ -1,27 +1,39 @@
1
- import { type RsbuildConfig } from '@rsbuild/core';
2
- import type { ExtendConfigFn } from '@rstest/core';
3
- import { toRstestConfig } from './toRstestConfig';
4
- export interface WithRsbuildConfigOptions {
5
- /**
6
- * `cwd` passed to loadConfig of Rsbuild
7
- * @default process.cwd()
8
- */
9
- cwd?: string;
10
- /**
11
- * Path to rsbuild config file
12
- * @default './rsbuild.config.ts'
13
- */
14
- configPath?: string;
15
- /**
16
- * The environment name in `environments` field to use, will be merged with the common config.
17
- * Set to a string to use the environment config with matching name.
18
- * @default undefined
19
- */
20
- environmentName?: string;
21
- /**
22
- * Modify rsbuild config before converting to rstest config
23
- */
24
- modifyRsbuildConfig?: (buildConfig: RsbuildConfig) => RsbuildConfig;
25
- }
26
- export declare function withRsbuildConfig(options?: WithRsbuildConfigOptions): ExtendConfigFn;
27
- export { toRstestConfig };
1
+ import type { ExtendConfig } from '@rstest/core';
2
+ import type { ExtendConfigFn } from '@rstest/core';
3
+ import { RsbuildConfig } from '@rsbuild/core';
4
+
5
+ /**
6
+ * Convert rsbuild config to rstest config
7
+ */
8
+ export declare function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modifyRsbuildConfig }: {
9
+ environmentName?: string;
10
+ rsbuildConfig: RsbuildConfig;
11
+ modifyRsbuildConfig?: (buildConfig: RsbuildConfig) => RsbuildConfig;
12
+ }): ExtendConfig;
13
+
14
+ export declare function withRsbuildConfig(options?: WithRsbuildConfigOptions): ExtendConfigFn;
15
+
16
+ export declare interface WithRsbuildConfigOptions {
17
+ /**
18
+ * `cwd` passed to loadConfig of Rsbuild
19
+ * @default process.cwd()
20
+ */
21
+ cwd?: string;
22
+ /**
23
+ * Path to rsbuild config file
24
+ * @default './rsbuild.config.ts'
25
+ */
26
+ configPath?: string;
27
+ /**
28
+ * The environment name in `environments` field to use, will be merged with the common config.
29
+ * Set to a string to use the environment config with matching name.
30
+ * @default undefined
31
+ */
32
+ environmentName?: string;
33
+ /**
34
+ * Modify rsbuild config before converting to rstest config
35
+ */
36
+ modifyRsbuildConfig?: (buildConfig: RsbuildConfig) => RsbuildConfig;
37
+ }
38
+
39
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstest/adapter-rsbuild",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Rstest adapter for rsbuild configuration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,10 +26,10 @@
26
26
  "@rstest/core": ">=0.7.7"
27
27
  },
28
28
  "devDependencies": {
29
- "@rsbuild/core": "^2.0.0-beta.6",
30
- "@rslib/core": "^0.19.6",
31
- "@rstest/core": "0.9.0",
32
- "@rstest/tsconfig": "0.0.1"
29
+ "@rsbuild/core": "2.0.0-beta.9",
30
+ "@rslib/core": "0.20.0",
31
+ "@rstest/tsconfig": "0.0.1",
32
+ "@rstest/core": "0.9.3"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
@@ -1,32 +0,0 @@
1
- import { type RsbuildConfig } from '@rsbuild/core';
2
- import type { ExtendConfig } from '@rstest/core';
3
- export interface WithRsbuildConfigOptions {
4
- /**
5
- * `cwd` passed to loadConfig of Rsbuild
6
- * @default process.cwd()
7
- */
8
- cwd?: string;
9
- /**
10
- * Path to rsbuild config file
11
- * @default './rsbuild.config.ts'
12
- */
13
- configPath?: string;
14
- /**
15
- * The environment name in `environments` field to use, will be merged with the common config.
16
- * Set to a string to use the environment config with matching name.
17
- * @default undefined
18
- */
19
- environmentName?: string;
20
- /**
21
- * Modify rsbuild config before converting to rstest config
22
- */
23
- modifyRsbuildConfig?: (buildConfig: RsbuildConfig) => RsbuildConfig;
24
- }
25
- /**
26
- * Convert rsbuild config to rstest config
27
- */
28
- export declare function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modifyRsbuildConfig, }: {
29
- environmentName?: string;
30
- rsbuildConfig: RsbuildConfig;
31
- modifyRsbuildConfig?: (buildConfig: RsbuildConfig) => RsbuildConfig;
32
- }): ExtendConfig;