Skip to content

refactor!: remove node exports#472

Merged
9aoy merged 2 commits intomainfrom
rstest-exports
Aug 14, 2025
Merged

refactor!: remove node exports#472
9aoy merged 2 commits intomainfrom
rstest-exports

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Aug 13, 2025

Summary

Remove node exports, only exports all types and exports from main entry.

Restructures the public API surface of the @rstest/core package to simplify imports and clarify module boundaries. The main entry point has been consolidated to index.ts, and types and exports have been unified to reduce confusion for consumers.

import type {
  Reporter,
  TestFileInfo,
  TestFileResult,
  TestResult,
- } from '@rstest/core/node';
+ } from '@rstest/core';

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 13, 2025 11:31
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 13, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 809bf98
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/689c77b215a8df0008690c7a
😎 Deploy Preview https://deploy-preview-472--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the @rstest/core package to simplify its public API by removing the separate node exports and consolidating all types and exports through the main entry point. This change eliminates the need for consumers to import from different paths and clarifies the module structure.

Key changes:

  • Consolidation of all types and exports to the main index.ts entry point
  • Removal of the separate node.ts module and its corresponding exports
  • Simplification of package.json exports configuration

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/reporter/rstest.customReporterConfig.ts Updates import statement to use main entry point instead of /node path
packages/core/src/node.ts Removes the entire node.ts file that previously exported types
packages/core/src/index.ts Adds CLI export and consolidates all type exports from the removed node module
packages/core/rslib.config.ts Updates build configuration to use single index entry point
packages/core/package.json Simplifies exports configuration to use only the main entry point

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

import type { RstestConfig } from './types';

export { runCLI } from './cli';

Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runCLI export appears to be adding a new public API surface. Since this is a refactoring PR focused on consolidating exports, consider whether exposing CLI functionality as part of the main API is intentional or if it should remain internal.

Suggested change

Copilot uses AI. Check for mistakes.
@9aoy 9aoy merged commit af32296 into main Aug 14, 2025
17 checks passed
@9aoy 9aoy deleted the rstest-exports branch August 14, 2025 03:05
@9aoy 9aoy mentioned this pull request Aug 15, 2025
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