Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Dec 6, 2023
1 parent b832cd1 commit dd24379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ function virtualAppEntrypoint(options: ViteOptions) {
getExports = async (id: string) => {
const info = await this.load.call(this, { id });
return info.exports ?? [];
}
};
}
},
configureServer(server) {
if (!getExports) {
getExports = async (id: string) => {
const mod = await server.ssrLoadModule(id);
return Object.keys(mod) ?? [];
}
};
}
},
resolveId(id: string) {
Expand Down
4 changes: 2 additions & 2 deletions packages/integrations/vue/test/app-entrypoint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ describe('App Entrypoint no export default (dev)', () => {
});

it('loads during SSR', async () => {
const html = await fixture.fetch('/').then(res => res.text());
const html = await fixture.fetch('/').then((res) => res.text());
const { document } = parseHTML(html);
const bar = document.querySelector('#foo > #bar');
expect(bar).not.to.be.undefined;
expect(bar.textContent).to.eq('works');
});

it('loads svg components without transforming them to assets', async () => {
const html = await fixture.fetch('/').then(res => res.text());
const html = await fixture.fetch('/').then((res) => res.text());
const { document } = parseHTML(html);
const client = document.querySelector('astro-island svg');

Expand Down

0 comments on commit dd24379

Please sign in to comment.