Skip to content

Conversation

@riisi
Copy link
Contributor

@riisi riisi commented Feb 1, 2026

Migrate test_integration_test.py to use external test resource files instead of inlined rule_runner.write_files() calls. This follows the pattern established in the TypeScript backend and makes lockfiles easier to maintain with actual package manager commands.

Changes:

  • Add test_resources/ directory with jest_project and mocha_project
  • Add testutil.py with load_js_test_project() helper
  • Refactor tests to load base projects and override specific files
  • Remove unused fixtures (_find_lockfile_resource, jest_lockfile, etc.)

Ref: #22807

Migrate test_integration_test.py to use external test resource files
instead of inlined rule_runner.write_files() calls. This follows the
pattern established in the TypeScript backend and makes lockfiles
easier to maintain with actual package manager commands.

Changes:
- Add test_resources/ directory with jest_project and mocha_project
- Add testutil.py with load_js_test_project() helper
- Refactor tests to load base projects and override specific files
- Remove unused fixtures (_find_lockfile_resource, jest_lockfile, etc.)

Ref: pantsbuild#22807

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@riisi riisi added the category:internal CI, fixes for not-yet-released features, etc. label Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:internal CI, fixes for not-yet-released features, etc.

1 participant