Skip to content

Commit f382f0d

Browse files
committed
fix test
1 parent ffd5ab9 commit f382f0d

File tree

25 files changed

+704
-3131
lines changed

25 files changed

+704
-3131
lines changed

.github/workflows/lint_test_compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
deno-version: "2.x"
3838

3939
- name: Tests
40-
run: deno task test
40+
run: deno test -A
4141

4242
compile:
4343
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ napi.sln
1212
examples/csharp/EndpointExample/bin
1313
auditResponse.json
1414
.extracted/
15-
napi-output/
15+
napi-output/
16+
coverage/

deno.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"compile:cli": "deno task --config packages/cli/deno.json compile",
99
"compile": "deno task --config packages/app/deno.json build && deno task --config packages/cli/deno.json compile",
1010
"compile:all": "deno task --config packages/app/deno.json build && deno task --config packages/cli/deno.json 'compile-*'",
11-
"test": "deno run -A npm:vitest",
11+
"test": "deno test -A --coverage",
12+
"test:watch": "deno test -A --watch",
1213
"lint": "deno fmt && deno check &&deno lint --fix"
1314
},
1415
"imports": {
15-
"vitest": "npm:vitest@^3.1.3"
16+
"@std/expect": "jsr:@std/expect@^1.0.16",
17+
"@std/testing": "jsr:@std/testing@^1.0.12"
1618
}
1719
}

deno.lock

Lines changed: 562 additions & 2922 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/src/helpers/sourceCode/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, it } from "vitest";
1+
import { describe, it } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23
import { removeIndexesFromSourceCode } from "./index.ts";
34

45
describe("removeIndexesFromSourceCode", () => {

packages/cli/src/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, it } from "vitest";
1+
import { describe, it } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23

34
describe("Dummy Test Suite", () => {
45
it("should pass this dummy test", () => {

packages/cli/src/languagePlugins/csharp/dependencyFormatting/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, test } from "vitest";
1+
import { describe, test } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23
import { CSharpDependencyFormatter } from "./index.ts";
34
import {
45
csharpFilesFolder,

packages/cli/src/languagePlugins/csharp/extensionResolver/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, test } from "vitest";
1+
import { describe, test } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23
import { CSharpExtensionResolver } from "./index.ts";
34
import { CSharpNamespaceMapper } from "../namespaceMapper/index.ts";
45
import { getCSharpFilesMap } from "../testFiles/index.ts";

packages/cli/src/languagePlugins/csharp/extractor/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, test } from "vitest";
1+
import { describe, test } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23
import { CSharpExtractor } from "./index.ts";
34
import {
45
csharpFilesFolder,

packages/cli/src/languagePlugins/csharp/invocationResolver/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, expect, test } from "vitest";
1+
import { describe, test } from "@std/testing/bdd";
2+
import { expect } from "@std/expect";
23
import type { File } from "../namespaceResolver/index.ts";
34
import {
45
CSharpNamespaceMapper,

0 commit comments

Comments
 (0)