Skip to content

Commit

Permalink
test: refactor tests with ava (#135)
Browse files Browse the repository at this point in the history
* test: refactor tests

* test: refactor `prettier` test

* test: refactor cli test

* test: refactor `scripts-like` test

* test: white space test

* test: main function test

* test: accept options argument

* test: `options` test

* test: add function test cover line 292

* test: private keys

* test: fields

* test: deps

* chore: clean up

* chore: minor tweaks

* chore: add value to objects

* style: fix code style

* chore: auto test other types data

* chore: ignore coverage dir

* test: use temp dir run cli test

* test: test cli without `--check`

* chore: fix style & disable test on commit

* test: fix fs fails

* chore: enable pre-commit

Co-authored-by: Keith Cirkel <[email protected]>
  • Loading branch information
fisker and keithamus committed Jan 9, 2020
1 parent 0019f66 commit 3b523ff
Show file tree
Hide file tree
Showing 30 changed files with 4,905 additions and 911 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
/.nyc_output
/coverage
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ node_js:
script:
- npm run sort-package-json
- npm run lint
- npm run test
- npm run test-coverage
after_success:
- npm run semantic-release
env:
Expand Down
4 changes: 0 additions & 4 deletions fixtures/another-not-sorted/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions fixtures/not-sorted-1/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions fixtures/not-sorted-2/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions fixtures/sorted-1/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions fixtures/sorted-2/package.json

This file was deleted.

Loading

0 comments on commit 3b523ff

Please sign in to comment.