diff --git a/config/minifyHtmlInJest.js b/config/minifyHtmlInJest.js index 783f187..22ce884 100644 --- a/config/minifyHtmlInJest.js +++ b/config/minifyHtmlInJest.js @@ -1,7 +1,9 @@ import { minifyHTMLLiterals } from 'minify-html-literals' export default { - processAsync (source) { - return minifyHTMLLiterals(source) + processAsync (source, fileName) { + return minifyHTMLLiterals(source, { + fileName + }) } } diff --git a/jest.config.cjs b/jest.config.cjs index 2136dcf..54c44fc 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -21,16 +21,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 95, - branches: 95, - functions: 95, - lines: 95 - }, - './src/picker/components/Picker/**/*': { - statements: 90, - branches: 85, - functions: 90, - lines: 90 + statements: 100, + branches: 100, + functions: 100, + lines: 100 } } } diff --git a/rollup.config.js b/rollup.config.js index 52aab59..fd10275 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -30,7 +30,9 @@ const baseConfig = { name: 'minify-html-in-tag-template-literals', transform (content, id) { if (id.includes('PickerTemplate.js')) { - return minifyHTMLLiterals(content) + return minifyHTMLLiterals(content, { + fileName: id + }) } } }, diff --git a/src/picker/components/Picker/PickerTemplate.js b/src/picker/components/Picker/PickerTemplate.js index 9815e6a..f09401b 100644 --- a/src/picker/components/Picker/PickerTemplate.js +++ b/src/picker/components/Picker/PickerTemplate.js @@ -137,8 +137,9 @@ export function render (container, state, helpers, events, actions, refs, abortS }
+
+ style="transform: translateX(${(/* istanbul ignore next */ (state.isRtl ? -1 : 1)) * state.currentGroupIndex * 100}%)">