vuestic-ui icon indicating copy to clipboard operation
vuestic-ui copied to clipboard

Add "how to test" page

Open m0ksem opened this issue 2 years ago • 3 comments

Let's make a small guide for user how to test vuestic app with jest, vitest.

m0ksem avatar Aug 17 '22 09:08 m0ksem

Also added to this issue - https://github.com/epicmaxco/vuestic-ui/issues/1991. I see it as a part of bigger problem.

asvae avatar Aug 17 '22 15:08 asvae

Code snippet for vitest.

export default {
  plugins: [vue()],
  test: {
    deps: {
      inline: [
        "vuestic-ui"
      ]
    },
    globals: true,
    environment: 'jsdom',
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
      'vuestic-ui': 'vuestic-ui/dist/esm/main.js'
    },
  },
};

m0ksem avatar Aug 22 '22 13:08 m0ksem

Hello! How can I test with jest?

gabriellatavares avatar Nov 14 '22 16:11 gabriellatavares