svelte-log-view 6.3.59 → 6.3.60

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.
Files changed (2) hide show
  1. package/package.json +18 -16
  2. package/playwright.config.js +44 -0
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "svelte-log-view",
3
- "version": "6.3.59",
3
+ "version": "6.3.60",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
- "packageManager": "npm@11.6.0+sha512.77f3fb0dbbd881835d7bd1217deabdf7ed77fc4ec4f363df64fc3cb986404abf6c437661041080f5c5d225103508e7c9ea30cb2742b7e942675d05a10af2d7b9",
8
+ "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
9
9
  "exports": {
10
10
  ".": {
11
11
  "svelte": "./src/index.svelte"
@@ -31,35 +31,37 @@
31
31
  "prepare": "node --run prepare:vite",
32
32
  "prepare:vite": "vite build",
33
33
  "start": "vite",
34
- "test": "node --run test:cafe",
35
- "test:cafe": "testcafe $BROWSER:headless tests/cafe/*-cafe.mjs --esm -s build/test --page-request-timeout 5000 --app-init-delay 8000 --app vite",
34
+ "test": "node --run test:playwright",
35
+ "test:playwright": "npx playwright test",
36
36
  "docs": "documentation readme --section=API ./src**/*.mjs",
37
37
  "lint": "node --run lint:docs",
38
38
  "lint:docs": "documentation lint ./src**/*.mjs",
39
39
  "preview": "vite preview"
40
40
  },
41
41
  "devDependencies": {
42
+ "@playwright/test": "^1.57.0",
42
43
  "@semantic-release/commit-analyzer": "^13.0.1",
43
44
  "@semantic-release/exec": "^7.1.0",
44
- "@semantic-release/github": "^12.0.0",
45
+ "@semantic-release/github": "^12.0.2",
45
46
  "@semantic-release/release-notes-generator": "^14.1.0",
46
47
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
48
+ "@types/node": "^24.10.1",
47
49
  "documentation": "^14.0.3",
48
- "mf-styling": "^3.2.13",
49
- "npm-pkgbuild": "^18.3.10",
50
- "reader-line-iterator": "^1.2.2",
51
- "semantic-release": "^25.0.1",
52
- "svelte": "^5.41.0",
53
- "testcafe": "^3.7.2",
54
- "vite": "^7.1.11",
55
- "vite-plugin-compression2": "^2.3.0"
50
+ "mf-styling": "^3.2.16",
51
+ "npm-pkgbuild": "^19.0.8",
52
+ "playwright": "^1.57.0",
53
+ "reader-line-iterator": "^1.2.3",
54
+ "semantic-release": "^25.0.2",
55
+ "svelte": "^5.45.5",
56
+ "vite": "^7.2.6",
57
+ "vite-plugin-compression2": "^2.4.0"
56
58
  },
57
59
  "peerDependencies": {
58
- "svelte": "^5.41.0"
60
+ "svelte": "^5.45.2"
59
61
  },
60
62
  "optionalDependencies": {
61
- "mf-hosting-cloudflare": "^1.0.8",
62
- "mf-hosting-frontend": "^3.9.6"
63
+ "mf-hosting-cloudflare": "^1.0.9",
64
+ "mf-hosting-frontend": "^3.9.10"
63
65
  },
64
66
  "repository": {
65
67
  "type": "git",
@@ -0,0 +1,44 @@
1
+ // @ts-check
2
+ import { defineConfig, devices } from "@playwright/test";
3
+
4
+ export default defineConfig({
5
+ testDir: "./tests/playwright",
6
+ /* Run tests in files in parallel */
7
+ fullyParallel: true,
8
+ /* Fail the build on CI if you accidentally left test.only in the source code. */
9
+ forbidOnly: !!process.env.CI,
10
+ /* Retry on CI only */
11
+ retries: process.env.CI ? 2 : 0,
12
+ /* Opt out of parallel tests on CI. */
13
+ workers: process.env.CI ? 1 : undefined,
14
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
15
+ reporter: "html",
16
+ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
17
+ use: {
18
+ baseURL: "http://localhost:5173/",
19
+
20
+ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
21
+ trace: "on-first-retry"
22
+ },
23
+
24
+ projects: [
25
+ /*{
26
+ name: "chromium",
27
+ use: { ...devices["Desktop Chrome"] }
28
+ },
29
+ {
30
+ name: "firefox",
31
+ use: { ...devices["Desktop Firefox"] }
32
+ },*/
33
+ {
34
+ name: "webkit",
35
+ use: { ...devices["Desktop Safari"] }
36
+ }
37
+ ],
38
+
39
+ webServer: {
40
+ command: "npx vite",
41
+ url: "http://localhost:5173/",
42
+ reuseExistingServer: !process.env.CI
43
+ }
44
+ });