Skip to content

Commit 28a72a6

Browse files
gongjsvanoneang
authored andcommitted
Component (#157):feat: tab组件
* optimize(book): handle no data situation (#154) * Unit testing (#155):自动化测试 * feat: 单元测试 LIcon组件 * feat:自动化测试 * fix:更新travis node版本 * feat(component): add switch & rate (#156) * feat: tab组件
1 parent 240f463 commit 28a72a6

File tree

15 files changed

+5589
-199
lines changed

15 files changed

+5589
-199
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
addons:
5+
chrome: stable
6+
sudo: required
7+
before_script:
8+
- "sudo chown root /opt/google/chrome/chrome-sandbox"
9+
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
10+
script: npm run test:unit

jest.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'js',
4+
'jsx',
5+
'json',
6+
'vue'
7+
],
8+
transform: {
9+
'^.+\\.vue$': 'vue-jest',
10+
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
11+
'^.+\\.jsx?$': 'babel-jest'
12+
},
13+
transformIgnorePatterns: [
14+
'/node_modules/'
15+
],
16+
moduleNameMapper: {
17+
'^@/(.*)$': '<rootDir>/src/$1'
18+
},
19+
snapshotSerializers: [
20+
'jest-serializer-vue'
21+
],
22+
testMatch: [
23+
'**/tests/unit/**/*.test.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
24+
],
25+
testURL: 'http://localhost/',
26+
watchPlugins: [
27+
'jest-watch-typeahead/filename',
28+
'jest-watch-typeahead/testname'
29+
]
30+
}

0 commit comments

Comments
 (0)