Skip to content

"(0 , stats_base_dists_beta_cdf_1.default) is not a function" in ts-jest #1038

@Quanyails

Description

@Quanyails

Description

Cannot import and call Beta Distribution CDF function from ts-jest.

Related Issues

Might be related to #508?

Questions

No.

Demo

No response

Reproduction

  1. Set up a ts-jest project (docs).
  2. Create the following test.
  3. Run the test in Jest.
// confidence.test.ts
import cdf from "@stdlib/stats-base-dists-beta-cdf";

test("confidence", () => {
    cdf(0.5, 1, 2);
});

Expected Results

Passing test + no error.

Actual Results

When running the test, I encounter the following error message:


(0 , stats_base_dists_beta_cdf_1.default) is not a function
TypeError: (0 , stats_base_dists_beta_cdf_1.default) is not a function

Version

0.0.7

Environments

Node.js

Browser Version

No response

Node.js / npm Version

20.0.0

Platform

Windows 11 build 22621.1848

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions