chore(wallaby.js): configure wallaby.js

This commit is contained in:
Mikhail Bashkirov 2019-05-08 07:57:15 +02:00 committed by Thomas Allmer
parent 4cc5a3571b
commit 60a8830ff4
3 changed files with 52 additions and 1 deletions

View file

@ -14,6 +14,7 @@
"@open-wc/testing": "^0.11.5",
"@open-wc/testing-karma": "^1.0.0",
"@open-wc/testing-karma-bs": "^1.0.0",
"@open-wc/testing-wallaby": "^0.1.12",
"@webcomponents/webcomponentsjs": "^2.2.5",
"babel-eslint": "^8.2.6",
"babel-polyfill": "^6.26.0",

26
wallaby.js Normal file
View file

@ -0,0 +1,26 @@
const wallabyWebpack = require('wallaby-webpack'); // eslint-disable-line import/no-extraneous-dependencies
// filter packages, e.g. 'core' / '{radio,radio-button}' / '{form,input*}'
const packagePattern = '*';
module.exports = () => ({
files: [
{ pattern: `packages/${packagePattern}/*.js`, load: false },
{ pattern: `packages/${packagePattern}/{src,translations,test}/**/*.js`, load: false },
{ pattern: `packages/${packagePattern}/test/**/*.test.js`, ignore: true },
],
filesWithNoCoverageCalculated: [
`packages/${packagePattern}/*.js`,
`packages/${packagePattern}/test/**/*.js`,
],
tests: [{ pattern: `packages/${packagePattern}/test/**/*.test.js`, load: false }],
testFramework: 'mocha',
env: {
kind: 'chrome',
},
postprocessor: wallabyWebpack(),
setup: () => {
// required to trigger test loading
window.__moduleBundler.loadTests();
},
});

View file

@ -1866,6 +1866,14 @@
karma-webpack "^5.0.0-alpha.2"
webpack "^4.28.0"
"@open-wc/testing-wallaby@^0.1.12":
version "0.1.12"
resolved "https://registry.yarnpkg.com/@open-wc/testing-wallaby/-/testing-wallaby-0.1.12.tgz#2607cfc9cf8db56914cbd1be85ac6c0ef8446dfa"
integrity sha512-wNS73gX7oJxJiYZoFT8UbnMfpjIylcjwz2Lhy/7t82XSFafgZxetmadykWt9nPJ1QmFL3AFCPfB1HSlSY5qF4w==
dependencies:
wallaby-webpack "^3.0.0"
webpack "^4.28.0"
"@open-wc/testing@^0.11.1", "@open-wc/testing@^0.11.5":
version "0.11.5"
resolved "https://registry.yarnpkg.com/@open-wc/testing/-/testing-0.11.5.tgz#3783c257921901111e9289a5fe3a2840e9b986bb"
@ -3616,7 +3624,7 @@ boxen@^2.1.0:
term-size "^1.2.0"
widest-line "^2.0.0"
brace-expansion@^1.1.7:
brace-expansion@^1.0.0, brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
@ -8783,6 +8791,13 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
minimatch@3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774"
integrity sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q=
dependencies:
brace-expansion "^1.0.0"
minimatch@3.0.4, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
@ -12861,6 +12876,15 @@ void-elements@^2.0.0:
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
integrity sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=
wallaby-webpack@^3.0.0:
version "3.9.15"
resolved "https://registry.yarnpkg.com/wallaby-webpack/-/wallaby-webpack-3.9.15.tgz#054aa621679a8da220103ef924514554be6e84fd"
integrity sha512-Kfm88LizCyTJ5df0F8+YwqtDWLsUlQlzvHBAnxedaxC5B6wtR2L2M6R2tOs6nfrP9UeDFfTQHTBStyITxgbIQw==
dependencies:
graceful-fs "^4.1.3"
lodash "^4.17.10"
minimatch "3.0.3"
warning@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/warning/-/warning-3.0.0.tgz#32e5377cb572de4ab04753bdf8821c01ed605b7c"