Skip to content

Commit

Permalink
feat: defined initial dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed May 27, 2020
1 parent b871baf commit 9337d81
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ $ npm install @form8ion/jest-scaffolder --save-prod
### Example

```javascript
import jestScaffolder from '@form8ion/jest-scaffolder';
import {scaffold} from '@form8ion/jest-scaffolder';

async function example() {
await scaffold();
}

example();
```

## Contributing
Expand Down
10 changes: 7 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// remark-usage-ignore-next
/* eslint-disable-next-line no-unused-vars */
import jestScaffolder from './lib/index.cjs';
import {scaffold} from './lib/index.cjs';

async function example() {
await scaffold();
}

example();
7 changes: 0 additions & 7 deletions src/canary-test.js

This file was deleted.

1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from './scaffolder';
8 changes: 8 additions & 0 deletions src/scaffolder-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {assert} from 'chai';
import scaffold from './scaffolder';

suite('scaffolder', () => {
test('that jest gets scaffolder', async () => {
assert.deepEqual(await scaffold(), {devDependencies: ['jest', 'jest-when']});
});
});
3 changes: 3 additions & 0 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function () {
return {devDependencies: ['jest', 'jest-when']};
}

0 comments on commit 9337d81

Please sign in to comment.