Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Issues running unit tests with babel transform functions


Hi,

I'm using Metronic Vue 3 (demo6 template) and trying to implement (front end) unit tests. However, facing issues running unit tests with babel transform functions.

The problem is that I can't run the unit tests with the metronic project (although I already built some unit tests with a vue3 start-from-scratch project and no problems were detected).

Any idea?

Thanks and regards,
MB


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Applebee’s has brought back its popular 2 for $25 deal! For $25, you can enjoy a full-size appetizer and two sizzling entrees applebees 2 for 25 menu with prices, featuring the new Garlic Sirloin Skillet and White Cheddar Bacon & Chicken Skillet.



It sounds like you're encountering some challenges with your unit tests in the Metronic Vue 3 project. Have you considered checking your Babel configuration? Sometimes, specific presets or plugins can cause issues. Also, if you're looking for a quick way to evaluate your setup, you might want to try iq test free online to see if your test logic is functioning as intended.



Hi Mateus,

Do you have any errors when you are trying to run your tests?

Are you using Vitest dependency for unit testing?

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(