Skip to content

Documentation and examples not up-to-date #66

Description

@P-Courteille

Hello,

The project documentation and examples seems to be outdated and misleading.

For example:

await driver.execute("interceptor: startListening", [{
    config: {
      include : {
        url: "**/reqres.in/**",
      }
    }
 }]);

Should be:

await driver.execute("interceptor: startListening", {
    config: {
      include : [{
        url: "**/reqres.in/**",
      }]
    }
 });
  • the object containing config should not be in an array (this mistake is present in all the examples)
  • the include and exclude content need to be ane array because in api-sniffer.ts, you do this.config.include.some

I recommand you to update it to help people to use your great plugin 🙂

Best regards,
Paul

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions