Skip to content

Commit 4da64ee

Browse files
committed
use babel-plugin-istanbul instead
1 parent 929c16f commit 4da64ee

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

build/karma.cover.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ module.exports = function (config) {
1515

1616
// add babel-plugin-coverage for code intrumentation
1717
options.webpack.babel = {
18-
plugins: [['coverage', {
19-
ignore: [
18+
plugins: [['istanbul', {
19+
exclude: [
2020
'test/',
2121
'src/compiler/parser/html-parser.js',
2222
'src/core/instance/proxy.js',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"babel-eslint": "^7.1.0",
6464
"babel-helper-vue-jsx-merge-props": "^2.0.2",
6565
"babel-loader": "^6.2.4",
66-
"babel-plugin-coverage": "^1.0.0",
66+
"babel-plugin-istanbul": "^3.0.0",
6767
"babel-plugin-syntax-jsx": "^6.18.0",
6868
"babel-plugin-transform-vue-jsx": "^3.2.0",
6969
"babel-preset-es2015": "^6.9.0",

src/core/observer/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ function protoAugment (target, src: Object) {
8989
/**
9090
* Augment an target Object or Array by defining
9191
* hidden properties.
92-
*
93-
* istanbul ignore next
9492
*/
93+
/* istanbul ignore next */
9594
function copyAugment (target: Object, src: Object, keys: Array<string>) {
9695
for (let i = 0, l = keys.length; i < l; i++) {
9796
const key = keys[i]

src/platforms/web/runtime/node-ops.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ export function setTextContent (node: Node, text: string) {
5353
node.textContent = text
5454
}
5555

56-
export function childNodes (node: Node): NodeList<Node> {
57-
return node.childNodes
58-
}
59-
6056
export function setAttribute (node: Element, key: string, val: string) {
6157
node.setAttribute(key, val)
6258
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy