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

📝 Docs: Document hooks better #2209

Open
jmm opened this issue Apr 14, 2016 · 1 comment
Open

📝 Docs: Document hooks better #2209

jmm opened this issue Apr 14, 2016 · 1 comment
Labels
area: documentation anything involving docs or mochajs.org status: accepting prs Mocha can use your help with this one!

Comments

@jmm
Copy link

jmm commented Apr 14, 2016

The main documentation on hooks portrays things as if the hooks will always be the ones from the bdd interface. It would be helpful to note there that there are different interfaces that may use different names for the equivalent hooks. This is especially bad when combined with bug #2207 which makes the bdd interface hooks actually available if using another interface, but with unexpected behavior.

@ScottFreeCode
Copy link
Contributor

It's especially worth adding that you can call this.skip() inside a test function or a suite's before-all/setup function to mark the test or suite as pending, as this is the only way I have found to make pending suites/tests in the Exports interface.

@drazisil drazisil added the area: documentation anything involving docs or mochajs.org label Mar 30, 2017
@JoshuaKGoldberg JoshuaKGoldberg changed the title Document hooks better 📝 Docs: Document hooks better Dec 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg added the status: accepting prs Mocha can use your help with this one! label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation anything involving docs or mochajs.org status: accepting prs Mocha can use your help with this one!
Projects
None yet
Development

No branches or pull requests

4 participants