Fix test configuration
This commit is contained in:
parent
7ade6a7fc9
commit
37725d4c70
4 changed files with 21 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -245,3 +245,4 @@ Various
|
|||
*.rej
|
||||
|
||||
build/
|
||||
coverage
|
||||
|
|
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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/**"
|
||||
],
|
||||
|
|
11
test/components/Colorpicker.spec.js
Normal file
11
test/components/Colorpicker.spec.js
Normal 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);
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue