Merge branch 'master' into dictionary-curation-2025-12-10

This commit is contained in:
Elijah Potter 2025-12-22 13:18:54 -07:00 committed by GitHub
commit 0d8b8d83ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 301 additions and 317 deletions

View file

@ -39,7 +39,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
package-manager-cache: false
- name: Enable Corepack
run: corepack enable
- name: Rust Cache

View file

@ -22,11 +22,11 @@
"fmt": "prettier --write '**/*.{svelte,ts,json,css,scss,md}'",
"zip-for-chrome": "TARGET_BROWSER=chrome npm run build && node src/zip.js harper-chrome-plugin.zip",
"zip-for-firefox": "TARGET_BROWSER=firefox npm run build && node src/zip.js harper-firefox-plugin.zip",
"test": "playwright test --headed --reporter=dot --quiet"
"test": "playwright test --headed --reporter=dot"
},
"devDependencies": {
"@crxjs/vite-plugin": "^2.0.0-beta.26",
"@playwright/test": "^1.52.0",
"@playwright/test": "^1.57.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/chrome": "^0.0.246",
"@types/lodash-es": "^4.17.12",

View file

@ -9,7 +9,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 4 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
@ -18,10 +18,13 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
/** A half hour */
globalTimeout: 1800000,
webServer: {
command: 'pnpm http-server ./tests/pages/ -p 8081',
url: 'http://localhost:8081',
stdout: 'ignore',
command: 'pnpm exec http-server ./tests/pages -p 8081 -a 127.0.0.1',
url: 'http://127.0.0.1:8081',
reuseExistingServer: true,
stdout: 'pipe',
stderr: 'pipe',
},
/* Configure projects for major browsers */

View file

@ -25,8 +25,10 @@
"devDependencies": {
"@microsoft/api-documenter": "^7.28.1",
"@microsoft/api-extractor": "^7.55.1",
"@vitest/browser": "^3.0.6",
"@vitest/ui": "3.0.8",
"@types/node": "catalog:",
"@vitest/browser": "^4.0.16",
"@vitest/browser-playwright": "^4.0.16",
"@vitest/ui": "4.0.16",
"harper-wasm": "workspace:*",
"marked": "^16.4.1",
"p-lazy": "^5.0.0",
@ -37,7 +39,7 @@
"vite": "^6.1.0",
"vite-plugin-dts": "^4.5.0",
"vite-plugin-virtual": "^0.3.0",
"vitest": "^3.0.5"
"vitest": "^4.0.16"
},
"main": "dist/harper.js",
"types": "dist/harper.d.ts",

View file

@ -16,7 +16,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"types": ["vite/client"],
"types": ["vite/client", "node"],
"paths": {
"harper-wasm": ["../../harper-wasm/pkg"]
}

View file

@ -1,4 +1,5 @@
/// <reference types="vitest" />
import { playwright } from '@vitest/browser-playwright';
import { resolve } from 'path';
import { defineConfig, type Plugin } from 'vite';
import dts from 'vite-plugin-dts';
@ -64,7 +65,7 @@ export default defineConfig({
test: {
retry: process.env.CI ? 5 : 0,
browser: {
provider: 'playwright',
provider: playwright(),
enabled: true,
headless: true,
screenshotFailures: false,

View file

@ -4,15 +4,16 @@
"version": "1.2.0",
"main": "main.js",
"devDependencies": {
"@playwright/test": "^1.52.0",
"@playwright/test": "^1.57.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@types/lodash-es": "^4.17.12",
"@vitest/browser": "^3.0.6",
"@vitest/browser": "^4.0.16",
"@vitest/browser-playwright": "^4.0.16",
"obsidian": "^1.7.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-svg-import": "^3.0.0",
"vite": "^6.3.5",
"vitest": "^3.0.8"
"vitest": "^4.0.16"
},
"scripts": {
"build": "vite build -l warn",

View file

@ -1,3 +1,4 @@
import { playwright } from '@vitest/browser-playwright';
import external from 'rollup-plugin-peer-deps-external';
import svg from 'rollup-plugin-svg-import';
import { defineConfig } from 'vite';
@ -22,7 +23,7 @@ export default defineConfig({
test: {
retry: process.env.CI ? 5 : 0,
browser: {
provider: 'playwright',
provider: playwright(),
enabled: true,
headless: true,
screenshotFailures: false,

579
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff