Download scripts/run-e2e.js from Jessedbrown/ipa-activity-generator-ptbr: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/Jessedbrown/ipa-activity-generator-ptbr/resolve/main/scripts/run-e2e.js
- Command line
-
hf download hf://Jessedbrown/ipa-activity-generator-ptbr/scripts/run-e2e.js
-
curl -L -o run-e2e.js https://huggingface.co/Jessedbrown/ipa-activity-generator-ptbr/resolve/main/scripts/run-e2e.js
338 Bytes
| const { spawn } = require('child_process'); | |
| if (process.env.E2E_RUN !== 'true') { | |
| console.log('E2E_RUN não está definido como "true"; testes E2E pulados.'); | |
| process.exit(0); | |
| } | |
| const child = spawn('npx', ['playwright', 'test'], { | |
| stdio: 'inherit', | |
| shell: true, | |
| }); | |
| child.on('close', (code) => { | |
| process.exit(code ?? 0); | |
| }); | |