(fromPath: string)
| 138 | } |
| 139 | |
| 140 | static createRequire(fromPath: string) { |
| 141 | const module = new Module(fromPath); |
| 142 | module.filename = fromPath; |
| 143 | |
| 144 | return module._createRequire(); |
| 145 | } |
| 146 | |
| 147 | _createRequire() { |
| 148 | const require = (p: string) => this.require(p); |
nothing calls this directly
no test coverage detected