René's URL Explorer Experiment


Title: rs test / rs lint run with an empty config when define.test() / define.lint() is missing: intended or an oversight? · Issue #490 · rstackjs/rstack-cli · GitHub

Open Graph Title: rs test / rs lint run with an empty config when define.test() / define.lint() is missing: intended or an oversight? · Issue #490 · rstackjs/rstack-cli

X Title: rs test / rs lint run with an empty config when define.test() / define.lint() is missing: intended or an oversight? · Issue #490 · rstackjs/rstack-cli

Description: What happens When rstack.config.ts only defines define.lint() and define.fmt() (no define.test()), rs test still starts Rstest with an empty config {}, scans the whole directory with the default include, and runs whatever it finds. A rea...

Open Graph Description: What happens When rstack.config.ts only defines define.lint() and define.fmt() (no define.test()), rs test still starts Rstest with an empty config {}, scans the whole directory with the default in...

X Description: What happens When rstack.config.ts only defines define.lint() and define.fmt() (no define.test()), rs test still starts Rstest with an empty config {}, scans the whole directory with the default in...

Opengraph URL: https://github.com/rstackjs/rstack-cli/issues/490

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rs test / rs lint run with an empty config when define.test() / define.lint() is missing: intended or an oversight?","articleBody":"## What happens\n\nWhen `rstack.config.ts` only defines `define.lint()` and `define.fmt()` (no `define.test()`), `rs test` still starts Rstest with an empty config `{}`, scans the whole directory with the default `include`, and runs whatever it finds.\n\nA real case is the rspack-examples repo. The root `rstack.config.ts` has lint, fmt and staged only. `rstest/module-federation-node/host/` has its own `rstest.config.ts` that registers `remote/*` through the `@module-federation/rstest` plugin. Running `rs test` at the repo root collects `host/tests/federated-modules.test.ts` too, but with the root's empty config and no federation plugin, so it fails with `Cannot find module 'remote/formatPrice'` (exit 1). Running `rstest` inside `host/` passes. A minimal fixture with the same layout reproduces the same result.\n\nAnother case is a repo that uses vitest. `rs test` picks up `src/sum.test.ts` and fails while loading it with `Vitest failed to find the current suite` (exit 1).\n\n`rs lint` behaves the same way: without `define.lint()` it runs with `[]`, prints `Lint passed (2 files, 0 rules)` and exits 0, reporting nothing for `debugger` statements or unused variables.\n\nEnvironment: rstack 0.7.4, @rstest/core 0.11.12 (rstack itself depends on `~0.11.12`, so it is always installed alongside rstack), vitest 5.0.1, Node 26.5.0.\n\n## History\n\nI went through the git history and the issues and could not find this fallback being discussed:\n\n- The `{}` fallback for test comes from 2dc4974 (feat: support for defining test config). The `[]` fallback for lint comes from c7b4ec1 (feat: add lint command placeholder). Both were pushed directly with no linked PR, and neither commit message mentions the missing-definition case.\n- The docs say \"Define only the configurations your project needs\" but do not say what happens when you invoke a tool that has no definition.\n- By contrast, `rs staged` refuses when `define.staged()` is missing (`No define.staged config found`). It is the only command that handles the missing case on purpose.\n\nSo this looks like a default that came with `?? {}` rather than an explicit product decision.\n\n## Question\n\nWhen the matching `define.*` is missing, what should `rs test` / `rs lint` do?\n\n- Keep the current behavior: treat it as `define.test({})` and run. If so, this should be documented, so users know that `rs test` at a monorepo root will pick up nested projects and tests written for other runners.\n- Align with `rs staged`: exit with an error that asks for `define.test()`.\n","author":{"url":"https://github.com/fi3ework","@type":"Person","name":"fi3ework"},"datePublished":"2026-09-15T11:42:20Z","url":"https://github.com/rstackjs/rstack-cli/issues/490"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fffc3b1c-6bd1-a7c1-8f52-e586b6f8d632
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DC6:3F29AB:554C4C:711656:6AEC2A15
html-safe-nonce2bb89b6f62a58ed104afd3920d156dc8a07aba74f9639cfb94c9ecb7b4416a5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REM2OjNGMjlBQjo1NTRDNEM6NzExNjU2OjZBRUMyQTE1IiwidmlzaXRvcl9pZCI6IjY4NzY1MzUxMDQxOTI5MTU5ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac92a685a397983777e1e26a4ab8802a0939a153e76eee13747a6747d9df01951f
hovercard-subject-tagissue:5461433838
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rstackjs/rstack-cli/490/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ba06dc147e84311b822d616d7f498d03f1be7c3ebc8d2810c67839e65bc4fa4a/rstackjs/rstack-cli/issues/490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba06dc147e84311b822d616d7f498d03f1be7c3ebc8d2810c67839e65bc4fa4a/rstackjs/rstack-cli/issues/490
og:image:altWhat happens When rstack.config.ts only defines define.lint() and define.fmt() (no define.test()), rs test still starts Rstest with an empty config {}, scans the whole directory with the default in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefi3ework
hostnamegithub.com
expected-hostnamegithub.com
Nonef290b7f408d9675a032f84ceb13aaf80220f947c681b4c5d9a7560a59ee32f02
turbo-cache-controlno-preview
go-importgithub.com/rstackjs/rstack-cli git https://github.com/rstackjs/rstack-cli.git
octolytics-dimension-user_id129049372
octolytics-dimension-user_loginrstackjs
octolytics-dimension-repository_id1138027854
octolytics-dimension-repository_nworstackjs/rstack-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1138027854
octolytics-dimension-repository_network_root_nworstackjs/rstack-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasead9a37a663eb727a42b8bacc5e035cc3a24dd058
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/rstackjs/rstack-cli/issues/490#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-cli%2Fissues%2F490
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-cli%2Fissues%2F490
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=rstackjs%2Frstack-cli
Reloadhttps://github.com/rstackjs/rstack-cli/issues/490
Reloadhttps://github.com/rstackjs/rstack-cli/issues/490
Reloadhttps://github.com/rstackjs/rstack-cli/issues/490
rstackjshttps://github.com/rstackjs
rstack-clihttps://github.com/rstackjs/rstack-cli
Codehttps://github.com/rstackjs/rstack-cli
Issues3 (3)https://github.com/rstackjs/rstack-cli/issues
Pull requests1 (1)https://github.com/rstackjs/rstack-cli/pulls
Discussionshttps://github.com/rstackjs/rstack-cli/discussions
Actionshttps://github.com/rstackjs/rstack-cli/actions
Projectshttps://github.com/rstackjs/rstack-cli/projects
Security and qualityhttps://github.com/rstackjs/rstack-cli/security
Insightshttps://github.com/rstackjs/rstack-cli/pulse
https://github.com/rstackjs/rstack-cli
New issuehttps://github.com/login?return_to=https://github.com/rstackjs/rstack-cli/issues/490
New issuehttps://github.com/login?return_to=https://github.com/rstackjs/rstack-cli/issues/490
rs test / rs lint run with an empty config when define.test() / define.lint() is missing: intended or an oversight?https://github.com/rstackjs/rstack-cli/issues/490#top
https://github.com/fi3ework
fi3eworkhttps://github.com/fi3ework
on Sep 15, 2026https://github.com/rstackjs/rstack-cli/issues/490#issue-5461433838
2dc4974https://github.com/rstackjs/rstack-cli/commit/2dc49740dd5020fc8d3775c18c0da7675fbc1eab
c7b4ec1https://github.com/rstackjs/rstack-cli/commit/c7b4ec184acfe28bb417350a6dff68b1983c8b5b
https://github.com/chenjiahan
chenjiahanhttps://github.com/chenjiahan
on Sep 16, 2026https://github.com/rstackjs/rstack-cli/issues/490#issuecomment-5693019987
#493https://github.com/rstackjs/rstack-cli/pull/493
fi3eworkhttps://github.com/fi3ework
completedhttps://github.com/rstackjs/rstack-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 16, 2026https://github.com/rstackjs/rstack-cli/issues/490#event-31227160519
Sign up for freehttps://github.com/signup?return_to=https://github.com/rstackjs/rstack-cli/issues/490
Sign in to commenthttps://github.com/login?return_to=https://github.com/rstackjs/rstack-cli/issues/490
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.