-
-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
Description
Description
Its common to use *.spec.ts or *.test.ts files for colocating test files within a codebase. Adding a +data.spec.ts file results in the file being read as a vike config file and an error like
Error: [vike][Wrong Usage] /pages/projects/+data.spec.ts should define export { data } or export default
at assertPlusFileExport (file:///home/runner/work/craigory-dev/craigory-dev/node_modules/.pnpm/[email protected][email protected]_react_i34oaiqht5chhklu44re2cs5aq/node_modules/vike/dist/esm/shared/page-configs/assertPlusFileExport.js:20:9)
at parseValueSerialized (file:///home/runner/work/craigory-dev/craigory-dev/node_modules/.pnpm/[email protected][email protected]_react_i34oaiqht5chhklu44re2cs5aq/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigsSerialized.js:100:9)
at file:///home/runner/work/craigory-dev/craigory-dev/node_modules/.pnpm/[email protected][email protected]_react_i34oaiqht5chhklu44re2cs5aq/node_modules/vike/dist/esm/shared/page-configs/serialize/parsePageConfigsSerialized.js:61:44
at Array.forEach (<anonymous>)
Can we configure excluded files in some way maybe? Thinking how tsconfigs are setup to exclude test files in the lib build and such.
Reactions are currently unavailable