-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Description
Running tests using npm or bun seems to work fine, when running with pnpm I get
pnpm test
> cloudflare-agent-starter@1.0.0 test /Users/caelinsutch/Github/agents-starter
> vitest
Failed to resolve dependency: ajv, present in ssr 'optimizeDeps.include'
Failed to resolve dependency: ajv, present in ssr 'optimizeDeps.include'
DEV v3.2.4 /Users/caelinsutch/Github/agents-starter
[vpw:debug] Adding `enable_nodejs_tty_module` compatibility flag during tests as this feature is needed to support the Vitest runner.
[vpw:debug] Adding `enable_nodejs_fs_module` compatibility flag during tests as this feature is needed to support the Vitest runner.
[vpw:debug] Adding `enable_nodejs_http_modules` compatibility flag during tests as this feature is needed to support the Vitest runner.
[vpw:debug] Adding `enable_nodejs_perf_hooks_module` compatibility flag during tests as this feature is needed to support the Vitest runner.
[vpw:info] Starting isolated runtimes for vitest.config.ts...
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL tests/index.test.ts [ tests/index.test.ts ]
SyntaxError: Unexpected token ':'
❯ Users/caelinsutch/Github/agents-starter/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js?mf_vitest_no_cjs_esm_shim:21:24
❯ Users/caelinsutch/Github/agents-starter/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js?mf_vitest_no_cjs_esm_shim:4:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
Test Files 1 failed (1)
Tests no tests
Start at 12:03:15
Duration 4.99s (transform 29ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 171ms)
FAIL Tests failed. Watching for file changes...
press h to show help, press q to quit
Cancelling test run. Press CTRL+c again to exit forcefully.
[vpw:debug] Shutting down runtimes...
ELIFECYCLE Test failed. See above for more details.
braunmarc253-glitch
Metadata
Metadata
Assignees
Labels
No labels