bespoken / virtual-alexa

:robot: Easily test and debug Alexa skills programmatically
https://bespoken.io
Apache License 2.0
112 stars 35 forks source link

Export SkillResponse #37

Closed unstubbable closed 6 years ago

unstubbable commented 6 years ago

Since the public API methods launch, intend and utter are resolving with a SkillResponse, this class should be exported so it can be used in annotations, e.g. in a test helper:

import {SkillResponse} from 'virtual-alexa';

function expectSomeOutput(output: SkillResponse): void {
  // expect something
}
const output = await alexa.launch();
expectSomeOutput(output);
codecov[bot] commented 6 years ago

Codecov Report

Merging #37 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   91.79%   91.79%           
=======================================
  Files          18       18           
  Lines         695      695           
  Branches       82       82           
=======================================
  Hits          638      638           
  Misses         57       57

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7e86261...041d09f. Read the comment docs.

jkelvie commented 6 years ago

Just FYI - we released a version 0.5.1 that includes this change.