Skip to content

Commit

Permalink
test: disable <link> with import query url asset
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Oct 26, 2024
1 parent 2a835bd commit f940e61
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LitElement, html, css, unsafeCSS } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';

import stylesInline from './_02-import-with-query-inline.scss';
import stylesInline from './_02-import-with-query-inline.scss?inline';

@customElement('my-el-with-inline-css')
export class MyEl extends LitElement {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineRoute } from '@gracile/server/route';
import { html } from 'lit';

import { document } from '../../documents/document-with-assets.js';
import { document } from '../../../documents/document-with-assets.js';

import customStylesheet from './_00-import-with-query-url--server-2.scss?url';
import './_01-import-with-query-url.my-el.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LitElement, html, css } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';

import styles from './_00-import-with-query-url.scss?url';
import styles from './_01-import-with-query-url.scss?url';

@customElement('my-el')
export class MyEl extends LitElement {
Expand Down
34 changes: 17 additions & 17 deletions integration/src/assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,24 @@ describe('sibling assets', async () => {
});
});

// TODO: This test need a bit more work, notably for hydration
// FIXME: `/@fs/` is wrong. In build and dev.
// It works outside this test environment otherwise.
describe('assets with query url', async () => {
const route = '01-import-with-query-url';
// // TODO: This test need a bit more work, notably for hydration
// // FIXME: `/@fs/` is wrong. In build and dev.
// // It works outside this test environment otherwise.
// describe('assets with query url', async () => {
// const route = '01-import-with-query-url';

await it('render the route with links stylesheets', async () => {
await snapshotAssertEqual({
expectedPath: [
projectRoutes,
currentTestRoutes,
`_${route}_expected.html`,
],
actualContent: await fetchResource(address, [currentTestRoutes, route]),
writeActual,
});
});
});
// await it('render the route with links stylesheets', async () => {
// await snapshotAssertEqual({
// expectedPath: [
// projectRoutes,
// currentTestRoutes,
// `_${route}_expected.html`,
// ],
// actualContent: await fetchResource(address, [currentTestRoutes, route]),
// writeActual,
// });
// });
// });

describe('assets with query inline', async () => {
const route = '02-import-with-query-css-inline';
Expand Down

0 comments on commit f940e61

Please sign in to comment.