readest/apps/readest-app/vitest.android.config.mts
Huang Xin cfe2bb9116
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
fix(reader): Android text selection breaks on the first word of hyphenated paragraphs (#4545)
2026-06-12 12:30:56 +08:00

22 lines
807 B
TypeScript

import { defineConfig } from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
// Android device lane: drives the installed Readest app on an adb-connected
// device or emulator through the WebView's Chrome DevTools Protocol plus adb
// input gestures. Tests run on the host in a plain node environment — the
// "browser" under test is the app itself.
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
environment: 'node',
include: ['src/**/*.android.test.ts'],
// One device, one app instance: never parallelize.
fileParallelism: false,
maxConcurrency: 1,
sequence: { concurrent: false },
// Real gestures + page turns are slow; native gestures can be flaky once.
testTimeout: 120_000,
hookTimeout: 120_000,
retry: 1,
},
});