mirror of
https://gh-proxy.org/https://github.com/klinsmaya/workdsh.git
synced 2026-11-08 01:17:05 +08:00
10 lines
431 B
JavaScript
10 lines
431 B
JavaScript
import { createRequire } from 'node:module'
|
|
import { join } from 'node:path'
|
|
|
|
export default function prepareTestElectron(project) {
|
|
// Electron installs lazily on first require. Finish that work before test
|
|
// workers can concurrently extract and execute the same Windows binary.
|
|
// Resolving the path prepares the runtime without launching Electron.
|
|
createRequire(join(project.config.root, 'package.json'))('electron')
|
|
}
|