Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set up tests #3

Merged
merged 4 commits into from
Nov 25, 2024
Merged

chore: set up tests #3

merged 4 commits into from
Nov 25, 2024

Conversation

Convly
Copy link
Member

@Convly Convly commented Nov 22, 2024

Description:

Set up the initial configuration to support testing in the project using Jest and ts-jest.

The following changes have been made:

  1. Jest Configuration (jest.config.js):

    • Added a new configuration file to set up Jest using ts-jest for transforming TypeScript files.
    • Specifies the test environment as node and sets up the coverage report directory.
  2. Package Scripts (package.json):

    • Introduced new scripts:

      • "test": Runs all the tests with verbose output.
      • "test:cov": Runs tests with coverage reporting enabled.
    • Updated dependencies to include jest, ts-jest, and @types/jest.

  3. Git Ignore Updates (.gitignore):

    • Added .coverage, to the .gitignore to exclude test-related artifacts from version control.

Verification:

  • Ensure that tests run successfully using the newly added test and test:cov scripts.
  • Verify that new files and directories specified in the .gitignore are correctly ignored by Git.

@Convly Convly added pr: chore Cleanups / dependencies / tooling / styling source: sdk-js labels Nov 22, 2024
Base automatically changed from chore/build-setup to chore/scaffold-project November 25, 2024 10:04
@Convly Convly merged commit 75052f4 into chore/scaffold-project Nov 25, 2024
@Convly Convly deleted the chore/test-setup branch November 25, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: chore Cleanups / dependencies / tooling / styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants