File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test'
22import type { Page } from '@playwright/test'
33
4+ const webServerMode = process . env . PLAYWRIGHT_WEB_SERVER_MODE ?? 'dev'
5+ const appEntryPath = webServerMode === 'preview' ? '/index.html' : '/src/index.html'
6+
47const waitForInitialRender = async ( page : Page ) => {
5- await page . goto ( '/' )
8+ await page . goto ( appEntryPath )
69 await expect ( page . getByRole ( 'heading' , { name : '@knighted/develop' } ) ) . toBeVisible ( )
710 await expect ( page . locator ( '#status' ) ) . toHaveText ( 'Rendered' )
811 await expect ( page . locator ( '#cdn-loading' ) ) . toHaveAttribute ( 'hidden' , '' )
Original file line number Diff line number Diff line change 1+ const ignoredTypeDiagnosticCodes = new Set ( [ 2318 , 6053 ] )
2+
13export const createTypeDiagnosticsController = ( {
24 cdnImports,
35 importFromCdnWithFallback,
@@ -88,8 +90,7 @@ export const createTypeDiagnosticsController = ({
8890 }
8991
9092 const shouldIgnoreTypeDiagnostic = diagnostic => {
91- const ignoredCodes = new Set ( [ 2318 , 6053 ] )
92- return ignoredCodes . has ( diagnostic . code )
93+ return ignoredTypeDiagnosticCodes . has ( diagnostic . code )
9394 }
9495
9596 const normalizeVirtualFileName = fileName =>
You can’t perform that action at this time.
0 commit comments