Skip to content

Commit c73bb45

Browse files
committed
It's alive!!!
1 parent 2b8e9c0 commit c73bb45

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

svelte.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ export const sveltekitViteConfig = {
88
],
99
ssr: {
1010
external: ['@babel/core', 'babel-plugin-precompile-intl']
11-
},
12-
// resolve: {
13-
// alias: {
14-
// $lib: path.resolve('./src/lib'),
15-
// },
16-
// },
11+
},
1712
}
1813

1914
/** @type {import('@sveltejs/kit').Config} */

tests/DefinitionEntrt.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { cleanup, render } from '@testing-library/svelte'
22
import DefinitionEntry from '$lib/DefinitionEntry.svelte';
3+
import chai from 'chai';
4+
import chaiDom from 'chai-dom';
5+
6+
chai.use(chaiDom);
37

48
describe('DefinitionEntry.svelte', () => {
59
// TODO: @testing-library/svelte claims to add this automatically but it doesn't work without explicit afterEach
610
afterEach(() => cleanup())
711

812
it('renders a link with the given href', () => {
913
const { getByTestId } = render(DefinitionEntry, { background: 'gray' })
10-
console.log("getByTestId('definition-entry')", getByTestId('definition-entry'));
11-
console.log("to.have->", expect(getByTestId('definition-entry')).to.have);
12-
console.log("to.have.class->", expect(getByTestId('definition-entry')).to.have.class);
13-
debugger;
1414
expect(getByTestId('definition-entry')).to.have.class('bg-gray-50');
1515
});
1616
});

0 commit comments

Comments
 (0)