Skip to content

Commit f1dc838

Browse files
committed
Initial commit
0 parents commit f1dc838

20 files changed

+318
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# vue-school-test-utils-base
2+
3+
This is the starting point of the Video course to work with the vue-test-utils

babel.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
node: 'current',
8+
},
9+
},
10+
],
11+
],
12+
};

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
verbose: true,
3+
roots: ["<rootDir>/src/", "<rootDir>/specs/"],
4+
moduleFileExtensions: ['js', 'vue'],
5+
moduleNameMapper: {
6+
'^@/(.*)$': '<rootDir>/src/$1',
7+
},
8+
transform: {
9+
"^.+\\.js$": "babel-jest",
10+
},
11+
snapshotSerializers: [
12+
"<rootDir>/node_modules/jest-serializer-vue"
13+
]
14+
}

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "vue-school-test-utils-base",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"repository": "https://github.com/codebryo/vue-school-test-utils-base.git",
6+
"author": "Roman Kuba <roman.kuba@gmail.com>",
7+
"license": "MIT",
8+
"dependencies": {
9+
"@babel/core": "^7.3.4",
10+
"@babel/preset-env": "^7.3.4",
11+
"babel-core": "^7.0.0-bridge.0",
12+
"babel-jest": "^24.5.0",
13+
"jest": "^24.5.0",
14+
"jest-serializer-vue": "^2.0.2",
15+
"vue": "^2.6.9",
16+
"vuex": "^3.1.1"
17+
}
18+
}

specs/alert.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import AlertMessage from '@/alert-message'
2+
import { mount } from '@vue/test-utils'

specs/fruits.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import FruitBasket from '@/fruit-basket'
2+
import { mount } from '@vue/test-utils'

specs/github.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Github from '@/github'
2+
import { mount } from '@vue/test-utils'

specs/salad.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Vuex from 'vuex'
2+
import Vue from 'vue'
3+
import { mount} from '@vue/test-utils'
4+
5+
import Salad from '@/salad-bowl'
6+
import saladStore from '@/store/salad-store'

specs/stubs.spec.js

Whitespace-only changes.

specs/temp.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Temprature from '@/temprature'
2+
import { mount } from '@vue/test-utils'

0 commit comments

Comments
 (0)