File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ export async function listTests(
64
64
65
65
const { getRsbuildStats, closeServer } = await createRsbuildServer ( {
66
66
globTestSourceEntries,
67
- normalizedConfig : context . normalizedConfig ,
67
+ inspectedConfig : {
68
+ ...context . normalizedConfig ,
69
+ projects : context . projects . map ( ( p ) => p . normalizedConfig ) ,
70
+ } ,
68
71
setupFiles,
69
72
rsbuildInstance,
70
73
rootPath,
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ import {
7
7
type Rspack ,
8
8
} from '@rsbuild/core' ;
9
9
import path from 'pathe' ;
10
- import type { EntryInfo , RstestContext , SourceMapInput } from '../types' ;
10
+ import type {
11
+ EntryInfo ,
12
+ NormalizedProjectConfig ,
13
+ RstestContext ,
14
+ SourceMapInput ,
15
+ } from '../types' ;
11
16
import { isDebug } from '../utils' ;
12
17
import { pluginBasic , RUNTIME_CHUNK_NAME } from './plugins/basic' ;
13
18
import { pluginCSSFilter } from './plugins/css-filter' ;
@@ -213,10 +218,12 @@ export const createRsbuildServer = async ({
213
218
globTestSourceEntries,
214
219
setupFiles,
215
220
rsbuildInstance,
216
- normalizedConfig ,
221
+ inspectedConfig ,
217
222
} : {
218
223
rsbuildInstance : RsbuildInstance ;
219
- normalizedConfig : RstestContext [ 'normalizedConfig' ] ;
224
+ inspectedConfig : RstestContext [ 'normalizedConfig' ] & {
225
+ projects : NormalizedProjectConfig [ ] ;
226
+ } ;
220
227
globTestSourceEntries : ( name : string ) => Promise < Record < string , string > > ;
221
228
setupFiles : Record < string , Record < string , string > > ;
222
229
rootPath : string ;
@@ -260,7 +267,7 @@ export const createRsbuildServer = async ({
260
267
await rsbuildInstance . inspectConfig ( {
261
268
writeToDisk : true ,
262
269
extraConfigs : {
263
- rstest : normalizedConfig ,
270
+ rstest : inspectedConfig ,
264
271
} ,
265
272
} ) ;
266
273
}
Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ export async function runTests(context: Rstest): Promise<void> {
64
64
) ;
65
65
66
66
const { getRsbuildStats, closeServer } = await createRsbuildServer ( {
67
- normalizedConfig : context . normalizedConfig ,
67
+ inspectedConfig : {
68
+ ...context . normalizedConfig ,
69
+ projects : context . projects . map ( ( p ) => p . normalizedConfig ) ,
70
+ } ,
68
71
globTestSourceEntries :
69
72
command === 'watch'
70
73
? globTestSourceEntries
You can’t perform that action at this time.
0 commit comments