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

Yield assert into the beforeEach/afterEach callbacks #7

Merged
merged 1 commit into from
Apr 5, 2015

Conversation

kamal
Copy link
Collaborator

@kamal kamal commented Mar 22, 2015

But only if they contain assertions

tests: [],
skips: [],
assertions: []
};

var ast = recast.parse(source);
var isInSetup = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in general 👎 on using this kind of globals, since we already keep track of the modules what if we do a second transverse at the end for every module, analyzing whether we should replace the callbacks or not?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool I can do that if I can figure out how to perform a second traverse.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kamal recast.visit(node, {}) :)

@abuiles
Copy link
Owner

abuiles commented Mar 27, 2015

@kamal sorry for my delay here! Can you please address my comment and then I think we are good to go :)

@kamal
Copy link
Collaborator Author

kamal commented Mar 30, 2015

@abuiles please review again. i recast again within transformModule

abuiles added a commit that referenced this pull request Apr 5, 2015
Yield assert into the beforeEach/afterEach callbacks
@abuiles abuiles merged commit cfd9f52 into abuiles:master Apr 5, 2015
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.

2 participants