Looking for a testing-library like testing experience for Astro we got this package.
We are trying to test it, but we have compatibility issues with the latest Astro version:
> frontend@0.0.1 test:unit G:\Projects\sites\central-mosque-bogota\frontend
> vitest --project unit
DEV v4.1.0 G:/Projects/sites/central-mosque-bogota/frontend
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'wrapDynamicImport')
❯ getPackageManager node_modules/.pnpm/astro@6.0.4_@types+node@25._161885e5f55e9dd85de2c2b5aeff702a/node_modules/astro/dist/cli/info/core/get-package-manager.js:16:5
14| const { PnpmPackageManager } = await import("../infra/pnpm-package-manager.js"…
15| return new PnpmPackageManager({ commandExecutor });
16| }
| ^
17| case "npm": {
18| const { NpmPackageManager } = await import("../infra/npm-package-manager.js");
❯ createAstroServerApp node_modules/.pnpm/astro@6.0.4_@types+node@25._161885e5f55e9dd85de2c2b5aeff702a/node_modules/astro/dist/vite-plugin-app/createAstroServerApp.js:27:28
❯ createHandler node_modules/.pnpm/astro@6.0.4_@types+node@25._161885e5f55e9dd85de2c2b5aeff702a/node_modules/astro/dist/vite-plugin-astro-server/plugin.js:55:35
❯ BasicMinimalPluginContext.configureServer node_modules/.pnpm/astro@6.0.4_@types+node@25._161885e5f55e9dd85de2c2b5aeff702a/node_modules/astro/dist/vite-plugin-astro-server/plugin.js:59:51
❯ _createServer node_modules/.pnpm/vite@7.3.1_@types+node@25.3_ed5c07a33bc42accf7010b89e1ceeaa2/node_modules/vite/dist/node/chunks/config.js:25603:86
❯ Object.createBrowserServer [as serverFactory] node_modules/.pnpm/@vitest+browser@4.1.0_vite@_e35be7033428ba52f9d069d23e265c03/node_modules/@vitest/browser/dist/index.js:8886:15
❯ node_modules/.pnpm/vitest@4.1.0_@types+node@25_9244681b8dfe344e6dd2b33d3e110389/node_modules/vitest/dist/chunks/cli-api.DuT9iuvY.js:10866:19
❯ node_modules/.pnpm/vitest@4.1.0_@types+node@25_9244681b8dfe344e6dd2b33d3e110389/node_modules/vitest/dist/chunks/cli-api.DuT9iuvY.js:10877:3
❯ node_modules/.pnpm/vitest@4.1.0_@types+node@25_9244681b8dfe344e6dd2b33d3e110389/node_modules/vitest/dist/chunks/cli-api.DuT9iuvY.js:10959:22
❯ node_modules/.pnpm/vitest@4.1.0_@types+node@25_9244681b8dfe344e6dd2b33d3e110389/node_modules/vitest/dist/chunks/cli-api.DuT9iuvY.js:2442:4
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Test Files no tests
Tests no tests
Errors 1 error
Start at 11:45:03
Duration 712ms (transform 0ms, setup 0ms, import 0ms, tests 0ms, environment 0ms)
FAIL Tests failed. Watching for file changes...
press h to show help, press q to quit
How can we solve it?
Looking for a
testing-librarylike testing experience for Astro we got this package.We are trying to test it, but we have compatibility issues with the latest Astro version:
How can we solve it?