Skip to content

Commit

Permalink
improve render modes test
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 25, 2023
1 parent 7b37ab5 commit 7bf4a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/render-modes/.testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ function testRun(cmd: 'npm run dev' | 'npm run preview', isV1Design?: true) {
expect(html).toContain('This page has zero browser-side JavaScript.')
if (isPreview) {
expect(html).not.toContain('<script')
expect(html).not.toContain('as="rel="modulepreload""')
expect(html).not.toContain('as="script"')
if (isV1Design) {
const cssImport = isV1Design
? partRegex`<link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.${hash}.css">`
Expand Down

0 comments on commit 7bf4a34

Please sign in to comment.