Description
Is this a bug report or a feature request?
Feature request
Version Info
- Version of Majestic: 1.6.2
- Version of Jest:
- Version of Node:
- Operating System:
Reproduction Repo
I use a lot of describe blocks in my test to group together tests that test a logical area. For instance, I am testing a navbar component right now that changes based on the type of club that user belongs to and the type of user within that club. So the navbar has to display different menu choices based on the type of user logged in. It also has to display different menu choices based on the options configured for the club. The navbar also has to look different based on the branding for each club.
So there are 3 distinct areas of tests that I have in my unit test file. I enclose each of those in a describe block so I have many levels of describe blocks. I would like to provide a way to collapse describe blocks so that I can focus on the tests I am writing. Here is an example,
describe ('test navbar component) {
describe ('test menus based on user types) {
describe ('test menu setup for a regular user') {
}
describe ('test menu setup for a club administrator') {
}
}
describe ('test menus based on club types) {
describe('test club with no courts') {
}
...
}
}
I would like to be able to click on a describe block name and have it toggle collapse / expand of that block of tests.
And i see that the list of tests gets reloaded quite frequently. I would like it to remember the open /closed state across one of the reloads. It doesn't have to remember the state persistently, just while it is running. I think it would get very annoying if I had closed a bunch of describe blocks, then I edited and saved the unit test file and majestic reparsed the file and "forgot" which blocks were closed. If it did that, it would nullify the usefulness of the feature.
Thanks
Greg