@@ -193,10 +193,7 @@ describe('Should compose create Rsbuild config correctly', () => {
193193 } ,
194194 } ,
195195 } ;
196- const composedRsbuildConfig = await composeCreateRsbuildConfig (
197- rslibConfig ,
198- process . cwd ( ) ,
199- ) ;
196+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
200197 expect ( composedRsbuildConfig ) . toMatchSnapshot ( ) ;
201198 } ) ;
202199} ) ;
@@ -211,10 +208,7 @@ describe('syntax', () => {
211208 ] ,
212209 } ;
213210
214- const composedRsbuildConfig = await composeCreateRsbuildConfig (
215- rslibConfig ,
216- process . cwd ( ) ,
217- ) ;
211+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
218212
219213 expect (
220214 composedRsbuildConfig [ 0 ] . config . output ?. overrideBrowserslist ,
@@ -237,10 +231,7 @@ describe('syntax', () => {
237231 } ,
238232 } ;
239233
240- const composedRsbuildConfig = await composeCreateRsbuildConfig (
241- rslibConfig ,
242- process . cwd ( ) ,
243- ) ;
234+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
244235
245236 expect (
246237 composedRsbuildConfig [ 0 ] . config . output ?. overrideBrowserslist ,
@@ -268,10 +259,7 @@ describe('syntax', () => {
268259 } ,
269260 } ;
270261
271- const composedRsbuildConfig = await composeCreateRsbuildConfig (
272- rslibConfig ,
273- process . cwd ( ) ,
274- ) ;
262+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
275263
276264 expect (
277265 composedRsbuildConfig [ 0 ] . config . output ?. overrideBrowserslist ,
@@ -292,10 +280,7 @@ describe('syntax', () => {
292280 ] ,
293281 } ;
294282
295- const composedRsbuildConfig = await composeCreateRsbuildConfig (
296- rslibConfig ,
297- process . cwd ( ) ,
298- ) ;
283+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
299284
300285 expect (
301286 composedRsbuildConfig [ 0 ] . config . output ?. overrideBrowserslist ,
@@ -323,10 +308,7 @@ describe('minify', () => {
323308 ] ,
324309 } ;
325310
326- const composedRsbuildConfig = await composeCreateRsbuildConfig (
327- rslibConfig ,
328- process . cwd ( ) ,
329- ) ;
311+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
330312
331313 expect (
332314 composedRsbuildConfig [ 0 ] . config . output ?. minify ,
@@ -383,10 +365,7 @@ describe('minify', () => {
383365 } ,
384366 } ;
385367
386- const composedRsbuildConfig = await composeCreateRsbuildConfig (
387- rslibConfig ,
388- process . cwd ( ) ,
389- ) ;
368+ const composedRsbuildConfig = await composeCreateRsbuildConfig ( rslibConfig ) ;
390369
391370 expect (
392371 composedRsbuildConfig [ 0 ] . config . output ?. minify ,
@@ -429,10 +408,7 @@ describe('id', () => {
429408 ] ,
430409 } ;
431410
432- const composedRsbuildConfig = await composeRsbuildEnvironments (
433- rslibConfig ,
434- process . cwd ( ) ,
435- ) ;
411+ const composedRsbuildConfig = await composeRsbuildEnvironments ( rslibConfig ) ;
436412
437413 expect ( Object . keys ( composedRsbuildConfig ) ) . toMatchInlineSnapshot ( `
438414 [
@@ -469,10 +445,7 @@ describe('id', () => {
469445 ] ,
470446 } ;
471447
472- const composedRsbuildConfig = await composeRsbuildEnvironments (
473- rslibConfig ,
474- process . cwd ( ) ,
475- ) ;
448+ const composedRsbuildConfig = await composeRsbuildEnvironments ( rslibConfig ) ;
476449 expect ( Object . keys ( composedRsbuildConfig ) ) . toMatchInlineSnapshot ( `
477450 [
478451 "esm1",
@@ -512,9 +485,8 @@ describe('id', () => {
512485 ] ,
513486 } ;
514487
515- // await composeRsbuildEnvironments(rslibConfig, process.cwd());
516488 await expect ( ( ) =>
517- composeRsbuildEnvironments ( rslibConfig , process . cwd ( ) ) ,
489+ composeRsbuildEnvironments ( rslibConfig ) ,
518490 ) . rejects . toThrowError (
519491 'The following ids are duplicated: "a", "b". Please change the "lib.id" to be unique.' ,
520492 ) ;
0 commit comments