@zenuml/core 3.32.4 → 3.32.6

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": "@zenuml/core",
3
- "version": "3.32.4",
3
+ "version": "3.32.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,10 +13,13 @@
13
13
  "build:gh-pages": "vite build --mode gh-pages",
14
14
  "build": "vite build -c vite.config.lib.ts",
15
15
  "test": "vitest",
16
- "cy": "cypress install & cypress run",
17
- "cy:update": "cypress run --env updateSnapshots=true",
18
- "cy:open": "cypress open",
19
- "cy:smoke": "cypress run --spec cypress/e2e/smoke.spec.js",
16
+ "pw": "playwright test",
17
+ "pw:ci": "playwright test --reporter=github",
18
+ "pw:update": "playwright test --update-snapshots",
19
+ "pw:update-ci": "playwright test --update-snapshots --reporter=github",
20
+ "pw:ui": "playwright test --ui",
21
+ "pw:smoke": "playwright test smoke",
22
+ "pw:install": "playwright install-deps && playwright install chromium",
20
23
  "antlr:setup": "python3 -m pip install antlr4-tools",
21
24
  "antlr:generate": "pwd && cd ./src/g4-units/hello-world && antlr4 Hello.g4",
22
25
  "antlr:javac": "pwd && cd ./src/g4-units/hello-world && CLASSPATH=\"../../../antlr/antlr-4.11.1-complete.jar:$CLASSPATH\" javac *.java",
@@ -31,16 +34,11 @@
31
34
  "git:branch:clean:merged": "git branch --merged|egrep -v \"(\\*|master|main|dev|skip_branch_name)\" | xargs git branch -d",
32
35
  "git:branch:safe-delete": "echo '> git log --graph --left-right --cherry --oneline another-branch...main'",
33
36
  "git:forget": "git rm -r --cached . && git add . && git commit -m \"Forget all ignored files\"",
34
- "test:specs": "echo \"Error: test:specs is not supported\"",
35
- "prepare": "husky install"
37
+ "test:specs": "echo \"Error: test:specs is not supported\""
36
38
  },
37
39
  "main": "./dist/zenuml.js",
38
40
  "module": "./dist/zenuml.esm.mjs",
39
41
  "types": "./types/index.d.ts",
40
- "lint-staged": {
41
- "**/*": "prettier --write --ignore-unknown",
42
- "*.{js,ts,tsx,jsx,json,htm,html}": "eslint --fix"
43
- },
44
42
  "engines": {
45
43
  "node": ">=20"
46
44
  },
@@ -80,6 +78,7 @@
80
78
  },
81
79
  "devDependencies": {
82
80
  "@eslint/js": "^9.21.0",
81
+ "@playwright/test": "^1.54.1",
83
82
  "@testing-library/jest-dom": "^6.6.3",
84
83
  "@testing-library/react": "^16.3.0",
85
84
  "@types/antlr4": "~4.11.2",
@@ -93,17 +92,13 @@
93
92
  "@types/react-dom": "^19.0.4",
94
93
  "@vitejs/plugin-react": "^4.3.4",
95
94
  "autoprefixer": "^10.4.21",
96
- "cypress": "^14.3.2",
97
- "cypress-plugin-snapshots": "^1.4.4",
98
95
  "eslint": "^9.21.0",
99
96
  "eslint-config-prettier": "^10.1.1",
100
97
  "eslint-plugin-react-hooks": "^5.1.0",
101
98
  "eslint-plugin-react-refresh": "^0.4.19",
102
99
  "globals": "^15.15.0",
103
- "husky": "^9.1.7",
104
100
  "jsdom": "^26.1.0",
105
101
  "less": "^4.3.0",
106
- "lint-staged": "^15.5.1",
107
102
  "postcss": "^8.5.3",
108
103
  "prettier": "3.5.3",
109
104
  "sass": "^1.86.3",
@@ -0,0 +1,36 @@
1
+ import { defineConfig, devices } from "@playwright/test";
2
+
3
+ export default defineConfig({
4
+ testDir: "./tests",
5
+ fullyParallel: true,
6
+ forbidOnly: !!process.env.CI,
7
+ retries: process.env.CI ? 2 : 0,
8
+ workers: process.env.CI ? 1 : undefined,
9
+ reporter: process.env.CI
10
+ ? [["github"], ["html", { open: "never" }]]
11
+ : [["html"]],
12
+ use: {
13
+ baseURL: "http://127.0.0.1:8080",
14
+ trace: "on-first-retry",
15
+ screenshot: "only-on-failure",
16
+ },
17
+ projects: [
18
+ {
19
+ name: "chromium",
20
+ use: {
21
+ ...devices["Desktop Chrome"],
22
+ viewport: { width: 1200, height: 800 },
23
+ // Force color profile like Cypress config
24
+ launchOptions: {
25
+ args: ["--force-color-profile=srgb"],
26
+ },
27
+ },
28
+ },
29
+ ],
30
+ webServer: {
31
+ command: "pnpm dev",
32
+ url: "http://127.0.0.1:8080",
33
+ reuseExistingServer: !process.env.CI,
34
+ timeout: 120 * 1000,
35
+ },
36
+ });
package/vite.config.ts CHANGED
@@ -62,5 +62,9 @@ export default defineConfig(({ mode }) => ({
62
62
  provider: "v8", // or 'v8'
63
63
  },
64
64
  setupFiles: resolve(__dirname, "test/setup.ts"),
65
+ exclude: [
66
+ "node_modules/**",
67
+ "tests/**", // Exclude Playwright tests
68
+ ],
65
69
  },
66
70
  }));
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- pnpm exec lint-staged
package/cypress.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from "cypress";
2
-
3
- export default defineConfig({
4
- projectId: "srixxa",
5
- e2e: {
6
- viewportWidth: 1200,
7
- viewportHeight: 800,
8
- // We've imported your old cypress plugins here.
9
- // You may want to clean this up later by importing these.
10
- setupNodeEvents(on, config) {
11
- return require("./cypress/plugins/index.js")(on, config);
12
- },
13
- excludeSpecPattern: ["**/__snapshots__/*", "**/__image_snapshots__/*"],
14
- specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
15
- },
16
- });