class Lanes::Command::Jest

Attributes

config[R]

Public Instance Methods

config_file() click to toggle source
# File lib/lanes/command/jest.rb, line 22
def config_file
    config.directory.join('jest.config.json')
end
configure() click to toggle source
# File lib/lanes/command/jest.rb, line 16
def configure
    @config = ClientConfig.new
    @config.invoke_all
    self
end
start() click to toggle source
# File lib/lanes/command/jest.rb, line 26
def start
    say 'Starting Jest', :green
    say Dir.pwd, :yellow
    cmd = "$(npm bin)/jest --config #{config_file}"
    cmd << "  --watch" if options[:watch]
    exec(cmd)
end