Skip to content

Commit

Permalink
test: add types test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Apr 18, 2019
1 parent e423b54 commit 0d75d3d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
key: v1-dependencies-{{ checksum "yarn.lock" }}

# run tests!
- run: npm test
- run: yarn run test

- run:
name: Send code coverage
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"sideEffects": false,
"scripts": {
"lint": "eslint --color --ext=js,html src tests docs *.js",
"lint:fix": "npm run lint -- --fix",
"lint:fix": "yarn run lint -- --fix",
"unit": "jest",
"dev": "npm run unit -- --watchAll",
"dev": "yarn run unit -- --watchAll",
"types": "tsc -p ./types/test/tsconfig.json",
"test": "npm run lint && npm run unit",
"pretest": "yarn run lint",
"test": "yarn run types && yarn run unit",
"prepublishOnly": "rollit"
},
"files": [
Expand All @@ -38,19 +39,19 @@
},
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@vue/test-utils": "^1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.1.0",
"codecov": "^3.2.0",
"eslint": "^5.14.1",
"babel-jest": "^24.7.1",
"codecov": "^3.3.0",
"eslint": "^5.16.0",
"eslint-config-posva": "^2.0.3",
"faked-promise": "^2.0.0",
"jest": "^24.1.0",
"typescript": "^3.3.3333",
"vue": "^2.6.7",
"vue-jest": "^3.0.3",
"vue-template-compiler": "^2.6.7"
"faked-promise": "^2.1.0",
"jest": "^24.7.1",
"typescript": "^3.4.3",
"vue": "^2.6.10",
"vue-jest": "^3.0.4",
"vue-template-compiler": "^2.6.10"
}
}
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
dependencies:
"@babel/highlight" "^7.0.0"

"@babel/core@^7.1.0", "@babel/core@^7.3.4":
"@babel/core@^7.1.0", "@babel/core@^7.4.3":
version "7.4.3"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.4.3.tgz#198d6d3af4567be3989550d97e068de94503074f"
integrity sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA==
Expand Down Expand Up @@ -531,7 +531,7 @@
"@babel/helper-regex" "^7.4.3"
regexpu-core "^4.5.4"

"@babel/preset-env@^7.3.4":
"@babel/preset-env@^7.4.3":
version "7.4.3"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.4.3.tgz#e71e16e123dc0fbf65a52cbcbcefd072fbd02880"
integrity sha512-FYbZdV12yHdJU5Z70cEg0f6lvtpZ8jFSDakTm7WXeJbLXh4R0ztGEu/SW7G1nJ2ZvKwDhz8YrbA84eYyprmGqw==
Expand Down Expand Up @@ -1073,7 +1073,7 @@ babel-eslint@^10.0.0:
eslint-scope "3.7.1"
eslint-visitor-keys "^1.0.0"

babel-jest@^24.1.0, babel-jest@^24.7.1:
babel-jest@^24.7.1:
version "24.7.1"
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.7.1.tgz#73902c9ff15a7dfbdc9994b0b17fcefd96042178"
integrity sha512-GPnLqfk8Mtt0i4OemjWkChi73A3ALs4w2/QbG64uAj8b5mmwzxc7jbJVRZt8NJkxi6FopVHog9S3xX6UJKb2qg==
Expand Down Expand Up @@ -1389,7 +1389,7 @@ code-point-at@^1.0.0:
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=

codecov@^3.2.0:
codecov@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.3.0.tgz#7bf337b3f7b0474606b5c31c56dd9e44e395e15d"
integrity sha512-S70c3Eg9SixumOvxaKE/yKUxb9ihu/uebD9iPO2IR73IdP4i6ZzjXEULj3d0HeyWPr0DqBfDkjNBWxURjVO5hw==
Expand Down Expand Up @@ -1895,7 +1895,7 @@ eslint-visitor-keys@^1.0.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==

eslint@^5.14.1:
eslint@^5.16.0:
version "5.16.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.16.0.tgz#a1e3ac1aae4a3fbd8296fcf8f7ab7314cbb6abea"
integrity sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==
Expand Down Expand Up @@ -2097,10 +2097,10 @@ extsprintf@^1.2.0:
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=

faked-promise@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/faked-promise/-/faked-promise-2.0.0.tgz#57f929e4363deee7debb4d3242d4ab0c607cdfaa"
integrity sha512-W/sZxsVOoOENv+rgX1hUNGoXOka+yLGOIECELCU42PSNfS2aO5Loc2Y/FdfwoqisS8nI9cr8IeBmoOt6O8Cqlw==
faked-promise@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/faked-promise/-/faked-promise-2.1.0.tgz#988dd6f7e1c30638be2cd0d67e944b51d5dbbaeb"
integrity sha512-p5QCxMj8OsHjBs0aIEbg1WFW019Tib3LIWpz6Fyl5uVf4A3FRJzcMrJgiTgwVB5k99k3M566U6NUa/rEi473fA==

fast-deep-equal@^2.0.1:
version "2.0.1"
Expand Down Expand Up @@ -3122,7 +3122,7 @@ jest-worker@^24.6.0:
merge-stream "^1.0.1"
supports-color "^6.1.0"

jest@^24.1.0:
jest@^24.7.1:
version "24.7.1"
resolved "https://registry.yarnpkg.com/jest/-/jest-24.7.1.tgz#0d94331cf510c75893ee32f87d7321d5bf8f2501"
integrity sha512-AbvRar5r++izmqo5gdbAjTeA6uNRGoNRuj5vHB0OnDXo2DXWZJVuaObiGgtlvhKb+cWy2oYbQSfxv7Q7GjnAtA==
Expand Down Expand Up @@ -4869,7 +4869,7 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

typescript@^3.3.3333:
typescript@^3.4.3:
version "3.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.3.tgz#0eb320e4ace9b10eadf5bc6103286b0f8b7c224f"
integrity sha512-FFgHdPt4T/duxx6Ndf7hwgMZZjZpB+U0nMNGVCYPq0rEzWKjEDobm4J6yb3CS7naZ0yURFqdw9Gwc7UOh/P9oQ==
Expand Down Expand Up @@ -4992,7 +4992,7 @@ vue-eslint-parser@^4.0.2:
esquery "^1.0.1"
lodash "^4.17.11"

vue-jest@^3.0.3:
vue-jest@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/vue-jest/-/vue-jest-3.0.4.tgz#b6a2b0d874968f26fa775ac901903fece531e08b"
integrity sha512-PY9Rwt4OyaVlA+KDJJ0614CbEvNOkffDI9g9moLQC/2DDoo0YrqZm7dHi13Q10uoK5Nt5WCYFdeAheOExPah0w==
Expand All @@ -5008,7 +5008,7 @@ vue-jest@^3.0.3:
tsconfig "^7.0.0"
vue-template-es2015-compiler "^1.6.0"

vue-template-compiler@^2.6.7:
vue-template-compiler@^2.6.10:
version "2.6.10"
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.10.tgz#323b4f3495f04faa3503337a82f5d6507799c9cc"
integrity sha512-jVZkw4/I/HT5ZMvRnhv78okGusqe0+qH2A0Em0Cp8aq78+NK9TII263CDVz2QXZsIT+yyV/gZc/j/vlwa+Epyg==
Expand All @@ -5021,7 +5021,7 @@ vue-template-es2015-compiler@^1.6.0:
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==

vue@^2.6.7:
vue@^2.6.10:
version "2.6.10"
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==
Expand Down

0 comments on commit 0d75d3d

Please sign in to comment.