59naga/eastern

Doesn't work the deep `.only`

Closed this issue · 0 comments

Deep location only doesn’t currently work properly. This problem will be fixed in v-2

describe("1", (it, describe) => {
  it("1-notonly-1", () => {});
  describe("2", it => {
    it("2-notonly-1", () => {});
  });
  describe("3", (it, describe) => {
    it("3-notonly-1", () => {});
    describe("4", it => {
      it("4-notonly-1", () => {});
    });
    describe("5", it => {
      it.only("5", () => {});
    });
  });
});

expected

  1
    -  1-notonly-1
    2
      -  2-notonly-1
    3
      -  3-notonly-1
      4
        -  4-notonly-1
      5
        ✓  5 (0 ms)

  1 passing (ELAPSED ms)

actual

  1
    ✓  1-notonly-1 (1 ms)
    2
      ✓  2-notonly-1 (0 ms)
    3
      ✓  3-notonly-1 (0 ms)
      4
        ✓  4-notonly-1 (0 ms)
      5
        ✓  5 (0 ms)

  5 passing (14 ms)