@lobb-js/lobb-ext-reports 0.10.4 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobb-js/lobb-ext-reports",
3
- "version": "0.10.4",
3
+ "version": "0.11.0",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -18,9 +18,8 @@
18
18
  }
19
19
  },
20
20
  "scripts": {
21
- "test": "bun run test:lobb && bun run test:studio",
21
+ "test": "bun test extensions/reports/tests",
22
22
  "test:lobb": "bun test extensions/reports/tests",
23
- "test:studio": "bun --bun playwright test --config extensions/reports/studio/tests/playwright.config.cjs",
24
23
  "dev": "bun run --watch lobb.ts",
25
24
  "dev:studio": "vite dev",
26
25
  "build": "vite build",
@@ -28,7 +27,6 @@
28
27
  "prepare": "svelte-kit sync || echo ''",
29
28
  "preview": "vite preview",
30
29
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
31
- "postinstall": "bun --bun playwright install chromium",
32
30
  "prepublishOnly": "lobb-ext-prepublish",
33
31
  "postpublish": "lobb-ext-postpublish",
34
32
  "package": "svelte-package --input extensions/reports/studio"
@@ -45,8 +43,7 @@
45
43
  },
46
44
  "devDependencies": {
47
45
  "@faker-js/faker": "^9.6.0",
48
- "@playwright/test": "^1.58.2",
49
- "@lobb-js/studio": "^0.28.5",
46
+ "@lobb-js/studio": "^0.29.0",
50
47
  "@lucide/svelte": "^0.563.1",
51
48
  "@sveltejs/adapter-node": "^5.5.4",
52
49
  "@sveltejs/kit": "^2.60.1",
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- import { test, expect } from "@playwright/test";
2
- const ANALYTICS_URL = "/studio/extensions/reports/analytics";
3
- test.describe("Analytics page", () => {
4
- test.beforeEach(async ({ page }) => {
5
- await page.goto(ANALYTICS_URL);
6
- });
7
- test("shows the analytics page", async ({ page }) => {
8
- await expect(page).toHaveURL(new RegExp(ANALYTICS_URL));
9
- });
10
- test("shows empty state when no report is selected", async ({ page }) => {
11
- await expect(page.getByText("No report selected")).toBeVisible();
12
- await expect(page.getByText("Please select a report to view the details or create a new one")).toBeVisible();
13
- });
14
- test("shows create a report button in empty state", async ({ page }) => {
15
- await expect(page.getByRole("button", { name: "Create a report" }).first()).toBeVisible();
16
- });
17
- });
@@ -1 +0,0 @@
1
- {"type": "commonjs"}
@@ -1,27 +0,0 @@
1
- const { defineConfig, devices } = require("@playwright/test");
2
-
3
- module.exports = defineConfig({
4
- testDir: __dirname,
5
- testMatch: "**/*.spec.ts",
6
- fullyParallel: true,
7
- retries: 0,
8
- expect: { timeout: 15000 },
9
- use: {
10
- baseURL: "http://localhost:3000",
11
- trace: "on-first-retry",
12
- headless: true,
13
- },
14
- projects: [
15
- {
16
- name: "chromium",
17
- use: { ...devices["Desktop Chrome"] },
18
- },
19
- ],
20
- // Automatically start the dev server before running tests
21
- webServer: {
22
- command: "bun run dev",
23
- url: "http://localhost:3000/studio",
24
- reuseExistingServer: true,
25
- cwd: "../../../../", // packages/reports-ext root
26
- },
27
- });
@@ -1,2 +0,0 @@
1
- declare const _exports: import("@playwright/test").Config<import("@playwright/test").PlaywrightTestOptions & {}, import("@playwright/test").PlaywrightWorkerOptions & {}>;
2
- export = _exports;
@@ -1,26 +0,0 @@
1
- import { test, expect } from "@playwright/test";
2
-
3
- const ANALYTICS_URL = "/studio/extensions/reports/analytics";
4
-
5
- test.describe("Analytics page", () => {
6
- test.beforeEach(async ({ page }) => {
7
- await page.goto(ANALYTICS_URL);
8
- });
9
-
10
- test("shows the analytics page", async ({ page }) => {
11
- await expect(page).toHaveURL(new RegExp(ANALYTICS_URL));
12
- });
13
-
14
- test("shows empty state when no report is selected", async ({ page }) => {
15
- await expect(page.getByText("No report selected")).toBeVisible();
16
- await expect(
17
- page.getByText("Please select a report to view the details or create a new one")
18
- ).toBeVisible();
19
- });
20
-
21
- test("shows create a report button in empty state", async ({ page }) => {
22
- await expect(
23
- page.getByRole("button", { name: "Create a report" }).first()
24
- ).toBeVisible();
25
- });
26
- });
@@ -1 +0,0 @@
1
- {"type": "commonjs"}
@@ -1,27 +0,0 @@
1
- const { defineConfig, devices } = require("@playwright/test");
2
-
3
- module.exports = defineConfig({
4
- testDir: __dirname,
5
- testMatch: "**/*.spec.ts",
6
- fullyParallel: true,
7
- retries: 0,
8
- expect: { timeout: 15000 },
9
- use: {
10
- baseURL: "http://localhost:3000",
11
- trace: "on-first-retry",
12
- headless: true,
13
- },
14
- projects: [
15
- {
16
- name: "chromium",
17
- use: { ...devices["Desktop Chrome"] },
18
- },
19
- ],
20
- // Automatically start the dev server before running tests
21
- webServer: {
22
- command: "bun run dev",
23
- url: "http://localhost:3000/studio",
24
- reuseExistingServer: true,
25
- cwd: "../../../../", // packages/reports-ext root
26
- },
27
- });