Skip to content

fix hmr of mdx and outlineInfo; support used together with @vitejs/plugin-react-swc #398

fix hmr of mdx and outlineInfo; support used together with @vitejs/plugin-react-swc

fix hmr of mdx and outlineInfo; support used together with @vitejs/plugin-react-swc #398

Triggered via pull request July 23, 2023 13:37
@csr632csr632
synchronize #146
fix/md-hmr
Status Success
Total duration 13m 29s
Artifacts 4
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yml

on: pull_request
Matrix: test_linux
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 notices
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:22:5 › hmr: edit file (js static data notation): packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L41
1) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:22:5 › hmr: edit file (js static data notation) Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-sider').locator('text="modified title"') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 39 | await expect( 40 | page.locator('.vp-local-sider >> text="modified title"') > 41 | ).toHaveCount(1) | ^ 42 | await testPlayground.restore() 43 | await expect( 44 | page.locator('.vp-local-sider >> text="index page title"') at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:41:5
[use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation): packages/playground/use-theme-doc/__tests__/hmr.spec.ts#L70
2) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.vp-local-sider').locator('text="modified title"') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 68 | await expect( 69 | page.locator('.vp-local-sider >> text="modified title"') > 70 | ).toHaveCount(1) | ^ 71 | await testPlayground.restore() 72 | await expect( 73 | page.locator('.vp-local-sider >> text="page2 title"') at /home/runner/work/vite-plugin-react-pages/vite-plugin-react-pages/packages/playground/use-theme-doc/__tests__/hmr.spec.ts:70:5
🎭 Playwright Run Summary
18 skipped 33 passed (5.8m)
🎭 Playwright Run Summary
2 flaky [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:22:5 › hmr: edit file (js static data notation) [use-theme-doc:serve] › ../packages/playground/use-theme-doc/__tests__/hmr.spec.ts:51:5 › hmr: edit file (md static data notation) 18 skipped 31 passed (6.4m)
🎭 Playwright Run Summary
18 skipped 33 passed (7.0m)
🎭 Playwright Run Summary
18 skipped 33 passed (9.1m)

Artifacts

Produced during runtime
Name Size
chromium-macos-latest-playwright-report Expired
498 KB
chromium-ubuntu-20.04-playwright-report Expired
496 KB
chromium-ubuntu-22.04-playwright-report Expired
1.67 MB
chromium-windows-latest-playwright-report Expired
498 KB