Skip to content

Commit

Permalink
adjust test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 3, 2018
1 parent 267ce74 commit 4f424aa
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 39 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": ["plugin:vue-libs/recommended"],
"env": {
"jest": true
},
"rules": {
"indent": ["error", 2, { "MemberExpression": "off" }],
"vue-libs/no-async-functions": 2
Expand Down
File renamed without changes.
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@
"precommit": "lint-staged"
},
"jest": {
"testMatch": [
"<rootDir>/test/**/*.js"
],
"testEnvironment": "node",
"setupFiles": [
"<rootDir>/test/__setup__.js"
"<rootDir>/scripts/testSetup.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/packages/",
"/__mocks__/",
"__setup__.js"
"/template/",
"/packages/test/"
]
},
"lint-staged": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
jest.mock('fs')

it('should pass', () => {

})
Empty file added scripts/testSetup.js
Empty file.
5 changes: 0 additions & 5 deletions test/.eslintrc

This file was deleted.

2 changes: 0 additions & 2 deletions test/__setup__.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/unit/Creator.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/unit/Generator.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/unit/PluginAPI.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/unit/PromptModuleAPI.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/unit/Service.js

This file was deleted.

9 changes: 0 additions & 9 deletions test/unit/options.js

This file was deleted.

0 comments on commit 4f424aa

Please sign in to comment.