Skip to content

Commit ee18f41

Browse files
fix(polyfill): fix setValidity
test(polyfill): add tests
1 parent 84dd299 commit ee18f41

10 files changed

+795
-56
lines changed

Diff for: karma.conf.js

+18-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = function(config) {
3030
'karma-ie-launcher',
3131
'karma-safarinative-launcher',
3232
'karma-detect-browsers',
33-
'karma-rollup-preprocessor'
33+
'karma-rollup-preprocessor',
34+
'karma-coverage-istanbul-reporter'
3435
],
3536

3637
browserNoActivityTimeout: 60000, //default 10000
@@ -47,6 +48,17 @@ module.exports = function(config) {
4748
}
4849
},
4950

51+
coverageIstanbulReporter: {
52+
reports: ['html', 'lcovonly'],
53+
dir: '.coverage',
54+
combineBrowserReports: true,
55+
skipFilesWithNoCoverage: true,
56+
'report-config': {
57+
html: {subdir: 'html'},
58+
lcovonly: {subdir: 'lcov'},
59+
},
60+
},
61+
5062
customLaunchers: {
5163
Safari: {
5264
base: 'SafariNative',
@@ -83,11 +95,12 @@ module.exports = function(config) {
8395
include: 'node_modules/**',
8496
exclude: 'node_modules/@open-wc/**',
8597
}),
98+
require('@rollup/plugin-node-resolve')(),
8699
require('rollup-plugin-babel')({
87100
babelrc: false,
101+
include: ['node_modules/@open-wc/**', 'test/**'],
88102
...babelrc,
89-
plugins: [
90-
],
103+
plugins: ['babel-plugin-transform-async-to-promises']
91104
}),
92105
],
93106
output: {
@@ -101,11 +114,12 @@ module.exports = function(config) {
101114
base: 'rollup',
102115
options: {
103116
plugins: [
117+
require('@rollup/plugin-node-resolve')(),
104118
require('rollup-plugin-babel')({
105119
babelrc: false,
106120
...babelrc,
107121
plugins: [coverage && 'babel-plugin-istanbul'].filter(Boolean),
108-
})
122+
}),
109123
],
110124
output: {
111125
format: 'iife',

0 commit comments

Comments
 (0)