mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
13 lines
290 B
TypeScript
13 lines
290 B
TypeScript
import type { Task } from '../task';
|
|
import { exec } from '../utils/exec';
|
|
|
|
export const smokeTest: Task = {
|
|
before: ['create'],
|
|
async ready() {
|
|
return false;
|
|
},
|
|
async run(_, { sandboxDir }) {
|
|
return exec(`yarn storybook --smoke-test --quiet`, { cwd: sandboxDir });
|
|
},
|
|
};
|