Skip to content

Generator functions? #4

@denchen

Description

@denchen

Does this library work with generator functions? And if so, can I get an example on how to write a test case for it?

Let's say the generator function is very basic, such as:

export function* testApi(url) {
  try {
    return yield axios.get(url);
  } catch(error) {
    console.log('ERROR:', error);
    throw error;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions