vitest-jetbrains-plugin icon indicating copy to clipboard operation
vitest-jetbrains-plugin copied to clipboard

Version 0.6.1 not working with aliases

Open webmint opened this issue 3 years ago • 1 comments

when alias used in test - plugin gives error -> "Error: [vite-node] Failed to load @/generated/types"

checked on 0.6.0 - everything is good there. Vitest - latest version.

Config -

test: { alias: { '@': resolve(__dirname, './src'), },

webmint avatar Aug 10 '22 09:08 webmint

Do you have demo project on github? Thanks. It works well with my vite.config.ts.

export default defineConfig({
    define: {
        'import.meta.vitest': 'undefined',
    },
    test: {
        includeSource: ['src/**/*.{js,ts}', "tests/**/*.{js,ts}"],
        globals: true,
        alias: {'@': resolve(__dirname, './src')}
    }
})

linux-china avatar Aug 10 '22 23:08 linux-china