question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Are you open to support `context` as `describe` alias?

See original GitHub issue

Up until around 1 year ago, context was an officially supported describe alias, but later got removed. Still, because of its value, some people (myself included) still want to use it, and as explained on that issue it’s very easy to add it back.

Unfortunately, it’s not compatible with using this ESLint plugin (and I really like this plugin 😃 ). Would you be open to merge a PR adding context (and derived context.only, …) to the describe aliases and other places where it would be needed?

I understand maybe you wouldn’t want to have defaults that are different to what jest itself has in terms of globals, but if so, maybe adding it as a configurable option instead? Afaik, the plugin itself cannot receive a configuration though, so apparently that would need to be done by passing options to each applicable rule.

If you are open to this I can give a PR a try. Or if you have any other suggestion on how to use ´context´ and this plugin at the same time, I would love to hear it.

Thanks for this plugin!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
raulmtcommented, Feb 21, 2019

@leoneves no, I haven’t done this yet, sorry…

0reactions
github-actions[bot]commented, Jun 4, 2022

🎉 This issue has been resolved in version 26.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda function aliases - AWS Documentation
You can create a function alias using the Lambda console. To create an alias. Open the Functions page of the Lambda console. Choose...
Read more >
Aliases API | Elasticsearch Guide [8.5] | Elastic
(Optional, string) Value used to route indexing operations to a specific shard. If specified, this overwrites the routing value for indexing operations. Data ......
Read more >
Linux alias Command: How to Use It With Examples
In this tutorial, learn how to create, view, and remove temporary and permanent command shortcuts in Linux using the alias command.
Read more >
Bash aliases you can't live without - Opensource.com
Otherwise, you can close your terminal and re-open it so that it reloads ... You can use the ls command to create an...
Read more >
5 Types Of ZSH Aliases You Should Know - Thorsten Hans
In ZSH you can increase your productivity with aliases. ... Parameters are used to describe this contextual information for shell commands.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found