You should avoid nesting tests, because it makes your test setup a bit more difficult with hooks, because of the scope.

describe("while...", () => {  
	describe("while...", () => {  
		it("then", () => {  
			...test  
		})  
	})  
})  

Instead, you should be using Setup functions.