Fix test configuration

This commit is contained in:
Raimund Schlüßler 2018-09-01 18:59:46 +02:00
parent 7ade6a7fc9
commit 37725d4c70
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
4 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View file

@ -245,3 +245,4 @@ Various
*.rej
build/
coverage

6
package-lock.json generated
View file

@ -7242,6 +7242,12 @@
"xml-name-validator": "^3.0.0"
}
},
"jsdom-global": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/jsdom-global/-/jsdom-global-3.0.2.tgz",
"integrity": "sha1-a9KZwTsMRiay2iwDk81DhdYGrLk=",
"dev": true
},
"jsesc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz",

View file

@ -54,6 +54,8 @@
"file-loader": "^1.1.11",
"jest": "^23.5.0",
"jest-serializer-vue": "^2.0.2",
"jsdom": "^11.12.0",
"jsdom-global": "^3.0.2",
"prettier-eslint": "^8.8.2",
"raw-loader": "^0.5.1",
"sass-loader": "^7.0.3",
@ -90,6 +92,7 @@
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/src/**/*.{js,vue}",
"!<rootDir>/src/vendor_legacy/**",
"!**/node_modules/**",
"!**/vendor/**"
],

View file

@ -0,0 +1,11 @@
import { shallowMount } from '@vue/test-utils'
import Colorpicker from '@/components/Colorpicker'
describe('colorpicker.vue', () => {
"use strict";
it('simulates test', () => {
const wrapper = shallowMount(Colorpicker);
expect(true).toBe(true);
});
});