mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
docs: use node: imports for node core modules (#39681)
docs: use `node:` imports for node builtin modules
This commit is contained in:
@@ -260,7 +260,7 @@ To create a custom driver, we'll use Node.js' [`child_process`](https://nodejs.o
|
||||
The test suite will spawn the Electron process, then establish a simple messaging protocol:
|
||||
|
||||
```js title='testDriver.js' @ts-nocheck
|
||||
const childProcess = require('child_process')
|
||||
const childProcess = require('node:child_process')
|
||||
const electronPath = require('electron')
|
||||
|
||||
// spawn the process
|
||||
|
||||
Reference in New Issue
Block a user