Tests don't run

未关闭
#1,513 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
833
派生
240
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoftgraph/msgraph-sdk-javascript 的其他 Issue

查看 microsoftgraph/msgraph-sdk-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。