Repository navigation
Reorganize test files to root directory - #1
Closed
reportbase wants to merge 1 commit into
Closed
reportbase wants to merge 1 commit into
reportbase wants to merge 1 commit into
Conversation
npm test looked for test/*.test.mjs and the tests imported from ../src/, so it ran 0 tests after the files were uploaded to the repo root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pf84v97TVCpcgwPh8HShvu
Owner
Author
|
Closing as superseded by #2, which is merged. Both PRs fixed the same problem: Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR reorganizes the test infrastructure by moving test files from the
test/subdirectory to the project root.Summary
Simplified the project structure by consolidating test files into the root directory, reducing directory nesting and making the test setup more straightforward.
Key Changes
worker.test.mjsto reference modules from the root (./worker.jsand./auth.jsinstead of../src/worker.jsand../src/auth.js)d1.mjsto use./schema.sqlinstead of../schema.sqlpackage.jsonto run tests from the root directory (*.test.mjsinstead oftest/*.test.mjs)Implementation Details
The changes maintain the same test functionality while flattening the directory structure. All relative import paths have been adjusted to reflect the new file locations, ensuring tests can properly locate both the source modules and test utilities.
https://claude.ai/code/session_01Pf84v97TVCpcgwPh8HShvu