maty21 / mocha-sidebar

Mocha side bar viewer that allows you to run Mocha tests from side bar menu and view results can run each level hierarchy from all tests to a single test(and each describer of course)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate `it` tests dissapear from the sidebar

lostfields opened this issue · comments

Description

Duplicate description of it will only show up one, even when the it is under another describe or file.

Steps to Reproduce

  1. Create a test file with duplicate it, see example
  2. Refresh sidebar, both tests show up in sidebar
  3. Start typing inside the example test

Expected Results

It should still show 2 tests after editing the tests

Actual Results

It removes all duplicate it tests from the sidebar when editing the tests.

Settings file

describe('When using a container', () => {

    describe('holding sync tests', () => {

        it('should work', () => {

        })
    })

    describe('holding async tests', () => {

        it('should work', () => {

        })
    })

})

Versions

  • VScode: v1.37.0
  • Mocha SideBar: v0.22.2
  • Node Version: v10.11.0

OS version

  • Linux
  • Mac
  • Windows

Example for reproducing