storybook/scripts/tasks/smoke-test.ts
2022-08-12 14:23:36 +10:00

13 lines
291 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 });
},
};