Skip to content

ryanplusplus/proxyquire.lua

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages