beholdr / maska

Simple zero-dependency input mask for Vue, Svelte, Alpine.js and vanilla JS.
https://beholdr.github.io/maska/
MIT License
1.79k stars 71 forks source link

Jest error #210

Closed PhillipeCosta closed 8 months ago

PhillipeCosta commented 8 months ago

Discussed in https://github.com/beholdr/maska/discussions/209

Originally posted by **PhillipeCosta** March 26, 2024 i has this error on Jest You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | } else | s.tokens = R; > Array.isArray(s.mask) && (s.mask.length > 1 ? s.mask = [...s.mask].sort((e, a) => e.length - a.length) : s.mask = s.mask[0] ?? ""), s.mask === "" && (s.mask = null), this.opts = s; | } | masked(t) { i use the last version of jest, and babel processor
beholdr commented 8 months ago

Reproduction link?

PhillipeCosta commented 8 months ago

i use nuxt 2 and vue 2

when i use 'yarn test -u' this error show up

Captura de tela 2024-03-26 111040

i use
"@babel/core": "^7.24.3", "@babel/preset-env": "^7.24.3", "@vue/vue2-jest": "28", "babel-jest": "^29.7.0",

beholdr commented 8 months ago

Sorry, can't help without reproduction link.