mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
17 lines
467 B
TypeScript
17 lines
467 B
TypeScript
import type { Task } from '../task';
|
|
import { exec } from '../utils/exec';
|
|
|
|
export const smokeTest: Task = {
|
|
description: 'Run the smoke tests of a sandbox',
|
|
dependsOn: ['sandbox'],
|
|
async ready() {
|
|
return false;
|
|
},
|
|
async run({ sandboxDir }, { dryRun, debug }) {
|
|
// eslint-disable-next-line no-console
|
|
console.log(`smoke testing in ${sandboxDir}`);
|
|
|
|
return exec(`yarn storybook --smoke-test`, { cwd: sandboxDir }, { dryRun, debug });
|
|
},
|
|
};
|