Skip to content

ryanplusplus/proxyquire.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxyquire.lua

Allows Lua modules to be overridden during testing. See https://github.com/thlorenz/proxyquire.

Example

local fake_module_1 = { ... }
local fake_module_2 = { ... }

local module_under_test = proxyquire('module_under_test', {
  module_1 = fake_module_1,
  module_2 = fake_module_2
})