Skip to content

Commit bfccceb

Browse files
authored
docs: Update build command for WebDriver example to be npm friendly
1 parent 2a68d06 commit bfccceb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/develop/Tests/WebDriver/Example/webdriverio.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ export const config = {
112112

113113
// ensure the rust project is built since we expect this binary to exist for the webdriver sessions
114114
onPrepare: () => {
115-
spawnSync('yarn', ['tauri', 'build', '--debug', '--no-bundle'], {
115+
// Remove the extra `--` if you're not using npm!
116+
spawnSync('npm', ['run', 'tauri', 'build', '--', '--debug', '--no-bundle'], {
116117
cwd: path.resolve(__dirname, '..'),
117118
stdio: 'inherit',
118119
shell: true,

0 commit comments

Comments
 (0)