Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

Relocates test files from __tests__/ to src/, co-locating each test with its corresponding source file for improved discoverability and maintainability.

Configuration Updates

  • vitest.config.ts: Test pattern __tests__/**/*.test.tssrc/**/*.test.ts, exclude test files from coverage
  • tsconfig.json: Exclude pattern __tests__**/*.test.ts to prevent test compilation
  • eslint.config.mjs: Add src/*.test.ts to allowDefaultProject for type-aware linting
  • .gitignore: Remove obsolete __tests__/runner/* entry

Test File Changes

All test imports updated from relative parent directory to sibling imports:

-const { run } = await import('../src/main.js')
+const { run } = await import('./main.js')

Build artifacts correctly exclude test files from dist/ output.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • img.shields.io
    • Triggering command: node /home/REDACTED/work/gh-aw-mcp-container-action/gh-aw-mcp-container-action/node_modules/.bin/make-coverage-badge --output-path ./badges/coverage.svg (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

@copilot move test files in /src, side by side with the sources files. Update build and test execution.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Move test files alongside source files and update build Move test files to src/ directory alongside source files Nov 7, 2025
Copilot AI requested a review from pelikhan November 7, 2025 13:28
Copilot finished work on behalf of pelikhan November 7, 2025 13:28
@pelikhan pelikhan marked this pull request as ready for review November 7, 2025 13:46
@pelikhan pelikhan merged commit 1d3810e into main Nov 7, 2025
34 of 39 checks passed
@pelikhan pelikhan deleted the copilot/move-test-files-src-folder branch November 7, 2025 13:49
Copilot AI added a commit that referenced this pull request Nov 7, 2025
Merged commits from main:
- Move test files to src/ directory alongside source files (#12)
- Add daily test improver agentic workflow (#10)
- Add agentic workflow for automated super-linter analysis and reporting (#4)
- Add agentic workflow for action metadata consistency checking (#11)
- Add comprehensive input/output schema for stdio and http MCP transports (#7)
- Add vitest test suites for TypeScript functions (#8)

Used merge=ours strategy for dist/index.js.map to keep our generated version.
All 49 tests pass.

Co-authored-by: pelikhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants