refactor: remove temp page files and load page component via bundler (close #1584) #2060
Triggered via pull request
September 11, 2024 04:58
Status
Failure
Total duration
19m 5s
Artifacts
–
Annotations
5 errors
packages/core/tests/page/createPage.spec.ts > should work without plugins > should create an empty page:
packages/core/tests/page/createPage.spec.ts#L76
AssertionError: expected undefined to be '/home/runner/work/core/core/packages/…' // Object.is equality
- Expected:
"/home/runner/work/core/core/packages/core/tests/page/fake-source/.vuepress/.temp/pages/index.html.vue"
+ Received:
undefined
❯ packages/core/tests/page/createPage.spec.ts:76:36
|
packages/core/tests/page/resolvePageChunkInfo.spec.ts > should resolve page chunk info correctly:
packages/core/tests/page/resolvePageChunkInfo.spec.ts#L18
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
- "chunkFilePath": "/home/runner/work/core/core/packages/core/tests/page/fake-source/.vuepress/.temp/pages/foo.html.js",
- "chunkFilePathRelative": "pages/foo.html.js",
+ "chunkFilePath": "/home/runner/work/core/core/packages/core/tests/page/fake-source/.vuepress/.temp/pages/foo.html.vue",
+ "chunkFilePathRelative": "pages/foo.html.vue",
"chunkName": "foo.html",
}
❯ packages/core/tests/page/resolvePageChunkInfo.spec.ts:18:20
|
packages/core/tests/page/resolvePageComponentInfo.spec.ts > should resolve page component info correctly without source file path:
packages/core/tests/page/resolvePageComponentInfo.spec.ts#L13
TypeError: resolvePageComponentInfo is not a function
❯ packages/core/tests/page/resolvePageComponentInfo.spec.ts:13:20
|
packages/core/tests/page/resolvePageComponentInfo.spec.ts > should resolve page component info correctly with source file path:
packages/core/tests/page/resolvePageComponentInfo.spec.ts#L27
TypeError: resolvePageComponentInfo is not a function
❯ packages/core/tests/page/resolvePageComponentInfo.spec.ts:27:20
|
coverage
Process completed with exit code 1.
|