mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			417 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			417 B
		
	
	
	
		
			JavaScript
		
	
	
	
| let pluginExecutionCounter = 0;
 | |
| 
 | |
| /** @type {import("../../../../").Configuration} */
 | |
| module.exports = {
 | |
| 	plugins: [
 | |
| 		{
 | |
| 			apply(compiler) {
 | |
| 				compiler.hooks.done.tap("TestPlugin", () => {
 | |
| 					expect(pluginExecutionCounter).toBeGreaterThan(0);
 | |
| 				});
 | |
| 			}
 | |
| 		}
 | |
| 	],
 | |
| 	resolve: {
 | |
| 		plugins: [
 | |
| 			{
 | |
| 				apply() {
 | |
| 					pluginExecutionCounter += 1;
 | |
| 				}
 | |
| 			},
 | |
| 			() => {
 | |
| 				pluginExecutionCounter += 1;
 | |
| 			}
 | |
| 		]
 | |
| 	}
 | |
| };
 |