Tests don't run

Đang mở
#1,513 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
build-system, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
833
Fork
240
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-javascript

Tất cả issue của microsoftgraph/msgraph-sdk-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.