mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-07-24 11:23:42 +00:00
fix(adapter): fix top level tests to not be in namespace
This commit is contained in:
parent
8bfe0e9435
commit
7ce2e97df6
4 changed files with 102 additions and 27 deletions
|
@ -7,3 +7,7 @@ describe("another", () => {
|
|||
expect(1).toBe(1);
|
||||
});
|
||||
});
|
||||
|
||||
test("toplevel test", () => {
|
||||
expect(1).toBe(2);
|
||||
});
|
||||
|
|
|
@ -145,25 +145,25 @@ test("this test is not run", () => {
|
|||
throw new Error("fail");
|
||||
});
|
||||
|
||||
describe("a suite", () => {
|
||||
describe("A suite", () => {
|
||||
// The 'only' option is set, so this test is run.
|
||||
it("this test is run", { only: true }, () => {
|
||||
it("this test is run A ", { only: true }, () => {
|
||||
// This code is run.
|
||||
});
|
||||
|
||||
it("this test is not run", () => {
|
||||
it("this test is not run B", () => {
|
||||
// This code is not run.
|
||||
throw new Error("fail");
|
||||
});
|
||||
});
|
||||
|
||||
describe.only("a suite", () => {
|
||||
describe.only("B suite", () => {
|
||||
// The 'only' option is set, so this test is run.
|
||||
it("this test is run", () => {
|
||||
it("this test is run A", () => {
|
||||
// This code is run.
|
||||
});
|
||||
|
||||
it("this test is run", () => {
|
||||
it("this test is run B", () => {
|
||||
// This code is run.
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue