tldraw/scripts/e2e/commands/test-browserstack.ts

21 lines
418 B
TypeScript
Raw Normal View History

import { promiseSpawn } from './util'
export default async function testBrowserstack({
os,
browser,
}: {
os: string[]
browser: string[]
}) {
const command = `yarn`
const args = [`workspace`, `@tldraw/e2e`, `test:remote`]
return promiseSpawn(command, args, {
env: {
...process.env,
BROWSERS: browser.join(','),
OS: os.join(','),
},
stdio: [0, 0, 0], // Use parent's [stdin, stdout, stderr]
})
}