File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { cleanup , render } from '@testing-library/svelte'
2
2
import DefinitionEntry from '$lib/DefinitionEntry.svelte' ;
3
- import DefinitionEntry from '../src/lib/DefinitionEntry.svelte' ;
4
3
5
4
describe ( 'DefinitionEntry.svelte' , ( ) => {
6
5
// TODO: @testing -library/svelte claims to add this automatically but it doesn't work without explicit afterEach
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite'
2
2
import { svelte } from '@sveltejs/vite-plugin-svelte'
3
3
import { sveltekitViteConfig } from './svelte.config.js'
4
+ import path from 'path' ;
4
5
5
6
export default defineConfig ( {
6
7
...sveltekitViteConfig ,
@@ -11,4 +12,9 @@ export default defineConfig({
11
12
global : true ,
12
13
environment : 'jsdom' ,
13
14
} ,
15
+ resolve : {
16
+ alias : {
17
+ $lib : path . resolve ( './src/lib' ) ,
18
+ } ,
19
+ } ,
14
20
} )
You can’t perform that action at this time.
0 commit comments