import { test } from '../../test';

export default test({
	compileOptions: {
		filename: 'src/components/FooSwitcher.svelte',
		cssHash({ hash, css, name, filename }) {
			const minFilename = (filename ?? '')
				.split('/')
				.map((i) => i.charAt(0).toLowerCase())
				.join('');
			return `sv-${name}-${minFilename}-${hash(css)}`;
		}
	}
});
