mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-07 20:43:00 -07:00
test(sidebar): skip clipboard test without Electron display
This commit is contained in:
@@ -8,12 +8,15 @@ import test from 'node:test';
|
||||
import { build } from 'esbuild';
|
||||
|
||||
// This check opens Electron and uses the clipboard. Keep it out of normal code-only lanes.
|
||||
test(
|
||||
const electronTest =
|
||||
process.env.SUBMINER_ELECTRON_TESTS === '1' &&
|
||||
(process.platform !== 'linux' || process.env.DISPLAY)
|
||||
? test
|
||||
: test.skip;
|
||||
|
||||
electronTest(
|
||||
'sidebar selection copies clean chronological text without seeking or losing context',
|
||||
{
|
||||
skip:
|
||||
process.env.SUBMINER_ELECTRON_TESTS !== '1' ||
|
||||
(process.platform === 'linux' && !process.env.DISPLAY),
|
||||
timeout: 30_000,
|
||||
},
|
||||
async () => {
|
||||
|
||||
Reference in New Issue
Block a user