Tests don't run

Offen
#1,513 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
node.js, typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
833
Forks
240
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoftgraph/msgraph-sdk-javascript

Alle Issues in microsoftgraph/msgraph-sdk-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.