Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.

Commit 0cafde5

Browse files
committed
fix(results): implemented minimum shape for results object
1 parent 54acfa7 commit 0cafde5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scaffolder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import scaffoldConfig from './config';
33
export default async function ({projectRoot}) {
44
await scaffoldConfig({projectRoot});
55

6-
return {};
6+
return {vcsIgnore: {files: [], directories: []}};
77
}

test/unit/scaffolder-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ suite('scaffolder', () => {
1818
test('that the config is scaffolded', async () => {
1919
const projectRoot = any.string();
2020

21-
assert.deepEqual(await scaffold({projectRoot}), {});
21+
assert.deepEqual(await scaffold({projectRoot}), {vcsIgnore: {files: [], directories: []}});
2222
assert.calledWith(configScaffolder.default, {projectRoot});
2323
});
2424
});

0 commit comments

Comments
 (0)