Skip to content

About

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

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
})

About

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

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages