Skip to content

Commit 4b5e978

Browse files
committed
after rebase fix
1 parent 56a8f1a commit 4b5e978

11 files changed

Lines changed: 21 additions & 14 deletions

File tree

packages/allure-bun/test/spec/bun.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ bunIt("keeps hook context isolated across multiple Bun files", async () => {
313313
expect(alphaTest.fullName).toBe("hook-context-a.test.ts#alpha test");
314314
expect(betaTest.fullName).toBe("hook-context-b.test.ts#beta test");
315315
expect(alphaTest.labels).toEqual(
316-
expect.arrayContaining([expect.objectContaining({ name: "package", value: "hook-context-a.test.ts" })]),
316+
expect.arrayContaining([expect.objectContaining({ name: "package", value: "dummy.hook-context-a.test.ts" })]),
317317
);
318318
expect(betaTest.labels).toEqual(
319-
expect.arrayContaining([expect.objectContaining({ name: "package", value: "hook-context-b.test.ts" })]),
319+
expect.arrayContaining([expect.objectContaining({ name: "package", value: "dummy.hook-context-b.test.ts" })]),
320320
);
321321
});
322322

@@ -364,7 +364,7 @@ bunIt("keeps Bun file paths with parentheses in the reported package name", asyn
364364
fullName: "paren(dir)/file(name).test.ts#paren path",
365365
titlePath: ["paren(dir)", "file(name).test.ts"],
366366
labels: expect.arrayContaining([
367-
expect.objectContaining({ name: "package", value: "paren(dir).file(name).test.ts" }),
367+
expect.objectContaining({ name: "package", value: "dummy.paren(dir).file(name).test.ts" }),
368368
]),
369369
}),
370370
);

packages/allure-cucumberjs/test/spec/fullName.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { expect, it } from "vitest";
21
import { Status } from "allure-js-commons";
32
import { md5 } from "allure-js-commons/sdk/reporter";
3+
import { expect, it } from "vitest";
4+
45
import { runCucumberInlineTest } from "../utils.js";
56

67
it("should set full name", async () => {

packages/allure-cypress/test/spec/fullName.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { describe, expect, it } from "vitest";
21
import { md5 } from "allure-js-commons/sdk/reporter";
2+
import { describe, expect, it } from "vitest";
3+
34
import { runCypressInlineTest } from "../utils.js";
45

56
describe("fullName and package", () => {

packages/allure-jasmine/test/spec/fullName.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { expect, it } from "vitest";
21
import { md5 } from "allure-js-commons/sdk/reporter";
2+
import { expect, it } from "vitest";
3+
34
import { runJasmineInlineTest } from "../utils.js";
45

56
it("should include package name in fullName", async () => {

packages/allure-jest/test/spec/fullName.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { expect, it } from "vitest";
21
import { md5 } from "allure-js-commons/sdk/reporter";
2+
import { expect, it } from "vitest";
3+
34
import { runJestInlineTest } from "../utils.js";
45

56
it("should include package name in fullName for unique test identification", async () => {

packages/allure-jest/test/spec/testplan.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ it("respects testplan", async () => {
8686
}),
8787
expect.objectContaining({
8888
name: "selected name",
89-
fullName: "aga.test.js#selected name",
89+
fullName: "allure-jest:aga.test.js#selected name",
9090
}),
9191
]),
9292
);

packages/allure-js-commons/test/sdk/reporter/monorepo.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { randomUUID } from "node:crypto";
22
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
33
import { tmpdir } from "node:os";
44
import { join } from "node:path";
5+
56
import { describe, expect, it, vi } from "vitest";
67

78
describe("monorepo scenario", () => {
@@ -30,9 +31,8 @@ describe("monorepo scenario", () => {
3031

3132
cwdSpy.mockReturnValue(package2Dir);
3233
vi.resetModules();
33-
const { getProjectName: getProjectName2, getRelativePath: getRelativePath2 } = await import(
34-
"../../../src/sdk/reporter/utils.js"
35-
);
34+
const { getProjectName: getProjectName2, getRelativePath: getRelativePath2 } =
35+
await import("../../../src/sdk/reporter/utils.js");
3636
const projectName2 = getProjectName2();
3737
const path2 = getRelativePath2(absoluteFile2);
3838

packages/allure-js-commons/test/sdk/reporter/utils.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as fs from "node:fs";
22
import { tmpdir } from "node:os";
33
import path from "node:path";
4+
45
import { describe, expect, it, vi } from "vitest";
56

67
import { LabelName } from "../../../src/model.js";

packages/allure-mocha/test/spec/fullName.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { expect, it } from "vitest";
21
import { md5 } from "allure-js-commons/sdk/reporter";
2+
import { expect, it } from "vitest";
3+
34
import { runMochaInlineTest } from "../utils.js";
45

56
it("should include package name in fullName for unique test identification", async () => {

packages/allure-playwright/test/spec/fullName.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { expect, it } from "vitest";
21
import { md5 } from "allure-js-commons/sdk/reporter";
2+
import { expect, it } from "vitest";
3+
34
import { runPlaywrightInlineTest } from "../utils.js";
45

56
it("should preserve fullName format and include fallback testCaseId", async () => {

0 commit comments

Comments
 (0)