Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(button): setup unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codebender828 committed Oct 27, 2019
1 parent f8a87ee commit b6f9d11
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ module.exports = {
presets: [
'@vue/app',
'@babel/preset-env'
]
],
env: {
development: {
plugins: ['transform-es2015-modules-commonjs']
},
test: {
plugins: ['transform-es2015-modules-commonjs']
}
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'^.+\\.(js|jsx)?$': 'babel-jest'
},
transformIgnorePatterns: [
'/node_modules/'
'/node_modules/(?!lodash-es)'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/plugin-transform-modules-commonjs": "^7.6.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@storybook/addon-actions": "^5.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/button.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { shallowMount } from '@vue/test-utils'
import Button from '../../lib/core/'
import Button from '../Button'
import Theme from '../../../kiwi.config'

describe('===== Button Component =====', () => {
Expand Down

0 comments on commit b6f9d11

Please sign in to comment.