This commit is contained in:
Ayres Vitor
2025-10-24 00:11:58 -03:00
parent bfccceb02a
commit 4e69e64892

View File

@@ -113,11 +113,15 @@ export const config = {
// ensure the rust project is built since we expect this binary to exist for the webdriver sessions
onPrepare: () => {
// Remove the extra `--` if you're not using npm!
spawnSync('npm', ['run', 'tauri', 'build', '--', '--debug', '--no-bundle'], {
cwd: path.resolve(__dirname, '..'),
stdio: 'inherit',
shell: true,
});
spawnSync(
'npm',
['run', 'tauri', 'build', '--', '--debug', '--no-bundle'],
{
cwd: path.resolve(__dirname, '..'),
stdio: 'inherit',
shell: true,
}
);
},
// ensure we are running `tauri-driver` before the session starts so that we can proxy the webdriver requests