Ava: Recipe detailing context in per-file and per-test hooks

Created on 24 Feb 2018  路  5Comments  路  Source: avajs/ava

Via https://github.com/avajs/ava/pull/1711#issuecomment-365646530 鈥斅爄t'd be great to document how t.context works in .before() / .after() and .beforeEach() / .afterEach() hooks. Examples should illustrate when context is copied and how to share references and values.

good for beginner help wanted documentation

All 5 comments

Hi, I've recently used t.context in the .before() / .after() and .beforeEach() / .afterEach() hooks in my project successfully and would love to help with this. I'm rather new to open source contributing so any feedback/advice would be appreciated. Thanks!

@Seiyial that's great! Have a look at some of our other recipes to see what we're looking for. Some of the more recently updates ones are:

Fork the repository, create a new Markdown file in the docs/recipes and go from your experiences. Then do a PR and we can help with any improvements.

@novemberborn Sorry for the delay. Please let me know how you think about it, thanks!

I have some free time this weekend, I'd be happy to build on @Seiyial's work in his PR and update it with @novemberborn's PR feedback. Any objection?

Go for it @mh81. If you could retain @Seiyial's commits that'd be great.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

electerious picture electerious  路  3Comments

nickjanssen picture nickjanssen  路  4Comments

ivogabe picture ivogabe  路  5Comments

carpasse picture carpasse  路  3Comments

ehmicky picture ehmicky  路  3Comments