You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/vitest.config.js

20 lines
389 B

import { defineConfig, configDefaults } from 'vitest/config';
export default defineConfig({
plugins: [
{
name: 'resolve-svelte',
resolveId(id) {
if (id.startsWith('svelte')) {
return id.replace(/^svelte(.*)\/?$/, `${__dirname}$1/index.mjs`);
}
}
}
],
test: {
dir: 'test',
reporters: ['dot'],
exclude: [...configDefaults.exclude, '**/samples/**']
}
});