Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Mock Module Exports

This migration trasforming use of deprecated options.defaultExport and options.namedExports on node:test.mock

Example

mock.module('…', {
-   defaultExport: …,
-   namedExports: {
-   	foo: …
-   },
+   exports: {
+   	default: …,
+   	foo: …,
+   },
});