@@ -1185,7 +1185,8 @@ t.test('workspaces', async (t) => {
11851185 t . same ( config . get ( 'workspace' ) , [ join ( path , 'workspaces' , 'one' ) ] , 'set the workspace' )
11861186 const info = logs . filter ( l => l [ 0 ] === 'info' )
11871187 t . equal ( info . length , 1 , 'got one log message' )
1188- t . match ( info [ 0 ] , [ 'info' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
1188+ t . match ( info [ 0 ] ,
1189+ [ 'info' , 'config' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
11891190 } )
11901191
11911192 t . test ( 'finds other workspace parent' , async ( t ) => {
@@ -1207,7 +1208,8 @@ t.test('workspaces', async (t) => {
12071208 t . same ( config . get ( 'workspace' ) , [ '../two' ] , 'kept the specified workspace' )
12081209 const info = logs . filter ( l => l [ 0 ] === 'info' )
12091210 t . equal ( info . length , 1 , 'got one log message' )
1210- t . match ( info [ 0 ] , [ 'info' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
1211+ t . match ( info [ 0 ] ,
1212+ [ 'info' , 'config' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
12111213 } )
12121214
12131215 t . test ( 'warns when workspace has .npmrc' , async ( t ) => {
@@ -1229,8 +1231,10 @@ t.test('workspaces', async (t) => {
12291231 t . same ( config . get ( 'workspace' ) , [ join ( path , 'workspaces' , 'three' ) ] , 'kept the workspace' )
12301232 const filtered = logs . filter ( l => l [ 0 ] === 'info' || l [ 0 ] === 'warn' )
12311233 t . equal ( filtered . length , 2 , 'got two log messages' )
1232- t . match ( filtered [ 0 ] , [ 'warn' , / ^ i g n o r i n g w o r k s p a c e c o n f i g / ] , 'warned about ignored config' )
1233- t . match ( filtered [ 1 ] , [ 'info' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
1234+ t . match ( filtered [ 0 ] ,
1235+ [ 'warn' , 'config' , / ^ i g n o r i n g w o r k s p a c e c o n f i g / ] , 'warned about ignored config' )
1236+ t . match ( filtered [ 1 ] ,
1237+ [ 'info' , 'config' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
12341238 } )
12351239
12361240 t . test ( 'prefix skips auto detect' , async ( t ) => {
@@ -1364,7 +1368,8 @@ t.test('workspaces', async (t) => {
13641368 t . same ( config . get ( 'workspace' ) , [ join ( path , 'workspaces' , 'one' ) ] , 'set the workspace' )
13651369 const filtered = logs . filter ( l => l [ 0 ] !== 'silly' )
13661370 t . equal ( filtered . length , 1 , 'got one log message' )
1367- t . match ( filtered [ 0 ] , [ 'info' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
1371+ t . match ( filtered [ 0 ] ,
1372+ [ 'info' , 'config' , / ^ f o u n d w o r k s p a c e r o o t a t / ] , 'logged info about workspace root' )
13681373 } )
13691374} )
13701375
0 commit comments