Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👍 Add DenopsStub class to stub denops for tests. #6

Merged
merged 3 commits into from
Jun 7, 2023
Merged

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented May 31, 2023

SSIA

Try it with

import { DenopsStub } from "https://raw.githubusercontent.com/vim-denops/deno-denops-test/7c6500cc94c861ad1a2e13fbc8fa018081499bc9/denops_test/mod.ts";

const denops = new DenopsStub({
  call: (fn, ...args) => {
    // Do whatever
    return Promise.resolve("return whatever");
  },
});

await denops.call("foo", "bar");

@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Patch coverage has no change and project coverage change: +6.71 🎉

Comparison is base (98d33ef) 69.30% compared to head (d25ae6a) 76.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   69.30%   76.02%   +6.71%     
==========================================
  Files           8        9       +1     
  Lines         316      392      +76     
  Branches       17       36      +19     
==========================================
+ Hits          219      298      +79     
+ Misses         97       94       -3     

see 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lambdalisue lambdalisue merged commit e35dd1b into main Jun 7, 2023
9 checks passed
@lambdalisue lambdalisue deleted the stub branch June 7, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant