Skip to content

Commit

Permalink
fix: re-use test-runner config
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Mar 1, 2022
1 parent 8e34243 commit c56e5ae
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 79 deletions.
8 changes: 0 additions & 8 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ checks:
enabled: true

plugins:
eslint:
enabled: true
channel: "eslint-5"
config:
sanitize_batch: false
extensions:
- .js
- .html
fixme:
enabled: true

Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@neovici/cfg/eslint",
"extends": "./node_modules/@neovici/cfg/eslint",
"globals": {
"Cosmoz": "readonly"
}
Expand Down
92 changes: 48 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"start": "wds",
"test": "wtr --coverage",
"test:watch": "wtr --watch",
"prepare": "husky install",
"postinstall": "ln -sv ./cfg node_modules/@neovici/eslint-config-cfg"
"prepare": "husky install"
},
"release": {
"plugins": [
Expand Down Expand Up @@ -68,9 +67,8 @@
"@semantic-release/git": "^10.0.0",
"@web/dev-server": "^0.1.28",
"@web/test-runner": "^0.13.23",
"@web/test-runner-playwright": "^0.8.8",
"@webcomponents/webcomponentsjs": "^2.4.3",
"husky": "^6.0.0",
"husky": "^7.0.0",
"semantic-release": "^19.0.0",
"sinon": "^13.0.0"
}
Expand Down
23 changes: 1 addition & 22 deletions web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
import { playwrightLauncher } from '@web/test-runner-playwright';

export default {
nodeResolve: true,
browsers: [
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'firefox' })
],
coverageConfig: {
reportDir: 'coverage',
threshold: {
statements: 70,
branches: 70,
functions: 50,
lines: 70
}
},
files: [
'**!(node_modules)/*.test.js'
],
testFramework: { config: { ui: 'tdd' }},
};
export { default } from '@neovici/cfg/web/test-runner.mjs';

0 comments on commit c56e5ae

Please sign in to comment.