kayahr / jest-electron-runner

Custom test runner for Jest that allows tests to be run in Electron environment
https://www.npmjs.com/package/@kayahr/jest-electron-runner
MIT License
19 stars 4 forks source link

a way to enable `enable-unsafe-webgpu` #11

Closed kayahr closed 1 year ago

kayahr commented 1 year ago

Just ran into another issues. IS there a way to enable enable-unsafe-webgpu?

I can hack this in by adding app.commandLine.appendSwitch('enable-unsafe-webgpu') to JestWorkerRPC But is there a config or env I can set?

Originally posted by @Zyie in https://github.com/kayahr/jest-electron-runner/issues/8#issuecomment-1235439143

kayahr commented 1 year ago

This is fixed in v29.2.0. All Electron command line options can now be specified in test environment options in the Jest config or with the ELECTRON_OPTIONS environment variable.

See README for details.