From 1b0c997d7d692cdd6f79b6e54fc830b75fb642d3 Mon Sep 17 00:00:00 2001 From: Ania Date: Fri, 26 Mar 2021 13:26:10 +0100 Subject: [PATCH 1/4] update button --- jest.config.js | 14 ++--- src/atoms/button/Button.html | 1 - src/atoms/button/Button.js | 37 +++--------- src/atoms/button/Button.spec.js | 14 ++++- src/atoms/button/Button.stories.js | 97 +++++++++++++----------------- src/atoms/button/Button.vue | 3 - tailwind.config.js | 3 + utils/helpers/get-class.js | 4 +- 8 files changed, 74 insertions(+), 99 deletions(-) diff --git a/jest.config.js b/jest.config.js index 35f80e052..d70a026c2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,19 +1,19 @@ module.exports = { - 'moduleNameMapper': { + moduleNameMapper: { '^vue$': 'vue/dist/vue.common.js' }, - 'moduleFileExtensions': [ + moduleFileExtensions: [ 'js', 'vue' ], - 'testMatch': ['/src/**/?(*.)+(spec|test).(ts|tsx|mjs|js|jsx)'], - 'transform': { + testMatch: ['/src/**/?(*.)+(spec|test).(ts|tsx|mjs|js|jsx)'], + transform: { '^.+\\.js$': '/node_modules/babel-jest', '.*\\.(vue)$': '/node_modules/jest-vue-preprocessor' }, - 'collectCoverage': true, - 'coverageDirectory': './coverage/', - 'collectCoverageFrom': [ + collectCoverage: true, + coverageDirectory: './coverage/', + collectCoverageFrom: [ '**/src/atoms/*/*.vue', '!**/atoms/transition-expand/*.vue', '**/src/molecules/*/*.vue', diff --git a/src/atoms/button/Button.html b/src/atoms/button/Button.html index 2b465c011..4ad0e11c0 100644 --- a/src/atoms/button/Button.html +++ b/src/atoms/button/Button.html @@ -1,6 +1,5 @@