feat: set default --config
to "vite.config.ts"
#209
Annotations
2 errors
__tests__/cli.spec.ts > Cli > must need a config :
__tests__/cli.spec.ts#L21
AssertionError: expected '✘ [ERROR] Could not resolve "/home/ru…' to be 'error: required option \'-c, --config…' // Object.is equality
- Expected
+ Received
- error: required option '-c, --config <path>' not specified
+ ✘ [ERROR] Could not resolve "/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/vite.config.ts"
+
+ failed to load config from /home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/vite.config.ts
+ /home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1476
+ let error = new Error(text);
+ ^
+
+ Error: Build failed with 1 error:
+ error: Could not resolve "/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/vite.config.ts"
+ at failureErrorWithLog (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1476:15)
+ at /home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:945:25
+ at runOnEndCallbacks (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1316:45)
+ at buildResponseToResult (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:943:7)
+ at /home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:970:16
+ at responseCallbacks.<computed> (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:622:9)
+ at handleIncomingPacket (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:677:12)
+ at Socket.readFromStdout (/home/runner/work/vite-bundle-analyzer/vite-bundle-analyzer/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:600:7)
+ at Socket.emit (node:events:519:28)
+ at addChunk (node:internal/streams/readable:559:12) {
+ errors: [Getter/Setter],
+ warnings: [Getter/Setter]
+ }
+
+ Node.js v21.7.3
❯ __tests__/cli.spec.ts:21:20
|
test
Process completed with exit code 2.
|