Skip to content

Add coverage tool #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ node_modules
*.sln
**.swp
*.sw*
coverage

# Logs
logs
Expand All @@ -25,3 +24,9 @@ pids
*.pid.lock

package-lock.json

/e2e/__projects__/*/yarn.lock

# Coverage output
coverage
.nyc_output
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coverage
.nyc_output
package-lock.json
11 changes: 0 additions & 11 deletions e2e/__projects__/babel-in-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"test": "jest --no-cache test.js"
},
"dependencies": {
"vue": "3.0.0-alpha.10"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"jest": "^24.0.0"
},
"jest": {
"moduleFileExtensions": [
"js",
Expand Down
4,027 changes: 0 additions & 4,027 deletions e2e/__projects__/babel-in-package/yarn.lock

This file was deleted.

14 changes: 8 additions & 6 deletions e2e/__projects__/basic/components/coffee.spec.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
/*
import { shallowMount, mount } from '@vue/test-utils'
import Coffee from './resources/Coffee.vue'
import CoffeeScript from './resources/CoffeeScript.vue'
import CoffeeES6 from './resources/CoffeeES6.vue'
import CoffeeScriptES6 from './resources/CoffeeScriptES6.vue'
*/

describe('Test CoffeeScript - coffee.spec.js', () => {
test('processes .vue file with lang set to coffee', () => {
shallowMount(Coffee)
// shallowMount(Coffee)
})

test('processes .vue file with lang set to coffeescript', () => {
shallowMount(CoffeeScript)
// shallowMount(CoffeeScript)
})

test('processes .vue file with lang set to coffee (ES6)', () => {
shallowMount(CoffeeES6)
// shallowMount(CoffeeES6)
})

test('processes .vue file with lang set to coffeescript (ES6)', () => {
shallowMount(CoffeeScriptES6)
// shallowMount(CoffeeScriptES6)
})

test('processes .vue file with lang set to coffeescript (ES6)', () => {
const wrapper = mount(CoffeeScriptES6)
expect(typeof wrapper).toBe('object')
// const wrapper = mount(CoffeeScriptES6)
// expect(typeof wrapper).toBe('object')
})
})
15 changes: 1 addition & 14 deletions e2e/__projects__/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,10 @@
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"test": "jest --no-cache --coverage test.js"
},
"dependencies": {
"vue": "3.0.0-alpha.10"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/compiler-sfc": "3.0.0-alpha.10",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"jest": "^24.0.0"
"babel-plugin-transform-vue-jsx": "^3.7.0"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -29,9 +19,6 @@
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "../../../lib/index.js"
},
"moduleNameMapper": {
"^~?__styles/(.*)$": "<rootDir>/components/styles/$1"
},
"globals": {
"vue-jest": {
"pug": {
Expand Down
Loading