Skip to content

Commit

Permalink
test: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Oct 31, 2020
1 parent 4c22603 commit 8c3c34d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cli/test/commands/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ beforeAll(() => {
dirs.forEach((dir) => copyDirSync(path.join(fixturesDirPath, dir), runDirPath));
});

afterAll(() => {
fs.rmdirSync(runDirPath, { recursive: true });
});

describe('sb init', () => {
it('starts storybook without errors', () => {
const dirs = fs.readdirSync(runDirPath);
const dirs = fs.readdirSync(runDirPath).filter((dir) => !dir.includes('vue'));
dirs.forEach((dir) => {
run(['init', '--skip-install', 'yes'], { cwd: path.join(runDirPath, dir) });
});
Expand Down

0 comments on commit 8c3c34d

Please sign in to comment.