You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					13 lines
				
				323 B
			
		
		
			
		
	
	
					13 lines
				
				323 B
			| 
								 
											3 years ago
										 
									 | 
							
								import t from 'tap'
							 | 
						||
| 
								 | 
							
								import pino from '../../pino.js'
							 | 
						||
| 
								 | 
							
								import helper from '../helper.js'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const { sink, check, once } = helper
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								t.test('esm support', async ({ equal }) => {
							 | 
						||
| 
								 | 
							
								  const stream = sink()
							 | 
						||
| 
								 | 
							
								  const instance = pino(stream)
							 | 
						||
| 
								 | 
							
								  instance.info('hello world')
							 | 
						||
| 
								 | 
							
								  check(equal, await once(stream, 'data'), 30, 'hello world')
							 | 
						||
| 
								 | 
							
								})
							 |