Skip to content

Commit a7f2274

Browse files
committed
feat(packages/sui-studio): add headless no sandbox option
1 parent c7482b9 commit a7f2274

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/sui-studio/bin/sui-studio-test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ const path = require('path')
88
const suiTestClientPath = require.resolve('@s-ui/test/bin/sui-test-browser')
99

1010
program
11-
.option('-C, --ci', 'Run components tests in CLI, headless mode [deprecated]')
12-
.option('-H, --headless', 'Run components tests in CLI, headless mode')
11+
.option('-C, --ci', 'Run components tests in CI, headless mode [deprecated]')
12+
.option('-H, --headless', 'Run components tests in CI, headless mode')
13+
.option('--headless-no-sandbox', 'Run components tests in CI, headless mode without sandbox')
1314
.option('-W, --watch', 'Watch mode')
1415
.option('-T, --timeout <timeout>', 'Timeout')
1516
.option('--coverage', 'Create coverage', false)
@@ -18,13 +19,14 @@ program
1819
console.log(' Examples:')
1920
console.log('')
2021
console.log(' $ sui-studio test --headless')
22+
console.log(' $ sui-studio test --headless-no-sandbox')
2123
console.log(' $ sui-studio test --headless --watch')
2224
console.log(' $ sui-studio test --help')
2325
console.log('')
2426
})
2527
.parse(process.argv)
2628

27-
const {coverage, coverageInline, watch, ci, headless, timeout} = program.opts()
29+
const {coverage, coverageInline, watch, ci, headless, headlessNoSandbox, timeout} = program.opts()
2830

2931
const relPath = path.relative(
3032
process.cwd(),
@@ -44,6 +46,7 @@ const run = async () => {
4446
watch && '--watch',
4547
ci && '--ci',
4648
headless && '--headless',
49+
headlessNoSandbox && '--headless-no-sandbox',
4750
timeout && `-T ${timeout}`
4851
].filter(Boolean),
4952
{

0 commit comments

Comments
 (0)