Skip to content

Commit f878282

Browse files
committed
fix(karma): reduce logging
1 parent 852a6be commit f878282

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

test/karma/karma.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ const localLaunchers = {
4848
},
4949
'Firefox': {
5050
base: 'Firefox'
51-
}
51+
},
52+
// IEGeneral: {
53+
// base: 'IE'
54+
// },
55+
// EdgeGeneral: {
56+
// base:'Edge'
57+
// }
5258
};
5359

5460
module.exports = function(config) {

test/karma/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
"devDependencies": {
2323
"@stencil/sass": "^0.2.0",
2424
"jasmine-core": "^3.4.0",
25-
"karma": "^2.0.0",
25+
"karma": "^4.1.0",
2626
"karma-browserstack-launcher": "^1.5.1",
2727
"karma-chrome-launcher": "^2.2.0",
2828
"karma-edge-launcher": "^0.4.2",
2929
"karma-firefox-launcher": "^1.1.0",
3030
"karma-ie-launcher": "^1.0.0",
31-
"karma-jasmine": "^1.1.1",
31+
"karma-jasmine": "^2.0.1",
3232
"karma-polyfill": "^1.0.0",
3333
"karma-safari-launcher": "^1.0.0",
3434
"karma-typescript": "^4.0.0",
35-
"puppeteer": "^1.14.0",
35+
"puppeteer": "^1.17.0",
3636
"rollup-plugin-node-builtins": "^2.1.2",
3737
"rollup-plugin-node-globals": "^1.4.0",
38-
"webpack": "^4.30.0",
39-
"webpack-cli": "^3.3.1",
38+
"webpack": "^4.32.2",
39+
"webpack-cli": "^3.3.2",
4040
"workbox-build": "4.3.1"
4141
}
4242
}

test/karma/test-app/input-basic/cmp-root.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Element, h, Prop, Watch } from '@stencil/core';
1+
import { Component, Element, h, Prop } from '@stencil/core';
22

33
@Component({
44
tag: 'input-basic-root'
@@ -7,13 +7,8 @@ export class InputBasicRoot {
77

88
@Element() el!: HTMLElement;
99
@Prop({ mutable: true }) value?: string;
10-
@Watch('value')
11-
onValueChanges(v: any) {
12-
console.log('onValueChanges', v);
13-
}
1410

1511
render() {
16-
console.log('render');
1712
return (
1813
<div>
1914
<input type="text" value={this.value} onInput={(ev: any) => this.value = ev.target.value}></input>

test/karma/test-app/legacy-context/cmp.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,4 @@ export class LegacyContextRoot {
2424
myService: this.myService
2525
}
2626
}
27-
28-
async componentWillLoad() {
29-
console.log(await this.getData());
30-
}
3127
}

test/karma/test-app/util.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export function setupDomTests(document: Document) {
9494

9595
window.addEventListener('stencil_appload', appLoad);
9696

97-
function scriptErrored(ev: any) {
98-
console.error('script error', ev);
99-
}
97+
// function scriptErrored(ev: any) {
98+
// console.error('script error', ev);
99+
// }
100100

101101
const tmpScripts = app.querySelectorAll('script') as NodeListOf<HTMLScriptElement>;
102102
for (let i = 0; i < tmpScripts.length; i++) {
@@ -112,7 +112,7 @@ export function setupDomTests(document: Document) {
112112
}
113113
script.innerHTML = tmpScripts[i].innerHTML;
114114

115-
script.addEventListener('error', scriptErrored);
115+
// script.addEventListener('error', scriptErrored);
116116

117117
tmpScripts[i].parentNode!.insertBefore(script, tmpScripts[i]);
118118
tmpScripts[i].parentNode!.removeChild(tmpScripts[i]);

0 commit comments

Comments
 (0)