Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Tests don't run

Open
#1,513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, typescript

Research direction

Start with the CONTRIBUTING guide and the npm scripts used by npm run build, npm run test, and npm run test:cjs; compare their behavior with npx mocha. Reproduce the reported no-output behavior on Node.js 18.12.0, then verify that the existing test suite runs and reports the deliberately failing expect.fail("Hi") case.

Written by the indexing model from the issue text.

Description

Bug Report

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.

Description

I'm trying to contribute but I can't get the tests to run.

Console Errors:

npm run test:

image

Steps to Reproduce

  1. Clone this repo
  2. npm install && npm run build
  3. npm run test

Expected behavior: Tests run, failures are reported

Actual behavior: tests never run

NOTE: I tried npm run test:cjs and npx mocha with the same results

Additional Context

I'm creating failures to make sure the tests SHOULD have some output (the failure should be reported, at the least) and nothing:

describe("RetryHandlerOptions.ts", () => {
	describe("Constructor", () => {
		it("just fails", () => {
			expect.fail("Hi");
		});

I'm on nodejs@18.12.0 and npm@8.19.2

Usage Information

n/a

Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.