Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test failures on doc-vitest #86

Open
wizzardx opened this issue Aug 30, 2024 · 0 comments
Open

unit test failures on doc-vitest #86

wizzardx opened this issue Aug 30, 2024 · 0 comments

Comments

@wizzardx
Copy link

wizzardx commented Aug 30, 2024

My doing a git clone of the project, running "pnpm install" and then "pnpm test" on it, leads to this error:

 ✘ [ERROR] Failed to resolve entry for package "vite-plugin-doctest". The package may have incorrect main/module/exports specified in its package.json. [plugin externalize-deps]
│     ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:27:
│       1374 │         let result = await callback({
│            ╵                            ^
│     at packageEntryFailure (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48264:17)
│     at resolvePackageEntry (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48261:5)
│     at tryNodeResolve (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48031:20)
│     at resolveByViteResolver (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68607:32)
│     at file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68639:40
│     at requestCallbacks.on-resolve (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:28)
│     at handleRequest (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:732:17)
│     at handleIncomingPacket (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:757:7)
│     at Socket.readFromStdout (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
│     at Socket.emit (node:events:519:28)
│   This error came from the "onResolve" callback registered here:
│     ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1293:20:
│       1293 │       let promise = setup({
│            ╵                     ^
│     at setup (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68624:27)
│     at handlePlugins (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1293:21)
│     at buildOrContextImpl (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:979:5)
│     at Object.buildOrContext (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:788:5)
│     at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2215:15
│     at new Promise (<anonymous>)
│     at Object.build (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2214:25)
│     at build (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2047:51)
│     at bundleConfigFile (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68583:26)
│   The plugin "externalize-deps" was triggered by this import
│     vite.config.ts:1:262:
│       1 │ ...test/vite.config.ts";import { doctest } from "vite-plugin-doctest";
│         ╵                                                 ~~~~~~~~~~~~~~~~~~~~~
│ failed to load config from /tmp/doc-vitest/test/vite.config.ts
│ ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯
│ Error: Build failed with 1 error:
│ ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:27: ERROR: [plugin: externalize-deps] Failed to resolve entry for package "vite-plugin-doctest". The package …
│     at failureErrorWithLog (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1651:15)
│     at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1059:25
│     at runOnEndCallbacks (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1486:45)
│     at buildResponseToResult (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1057:7)
│     at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1086:16
│     at responseCallbacks.<computed> (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:704:9)
│     at handleIncomingPacket (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:764:9)
│     at Socket.readFromStdout (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
│     at Socket.emit (node:events:519:28)
│     at addChunk (node:internal/streams/readable:559:12) {
│   errors: [Getter/Setter],
│   warnings: [Getter/Setter]
│ }
└─ Failed in 253ms at /tmp/doc-vitest/test
/tmp/doc-vitest/test:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  test@ test: `vitest run`
Exit status 1
 ELIFECYCLE  Test failed. See above for more details.
@wizzardx wizzardx changed the title ssssota / doc-vitest unit test failures on doc-vitest Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant