Skip to content

Commit

Permalink
feat: adds vitest globals to typescript config and removes redundant…
Browse files Browse the repository at this point in the history
… imports (#91)
  • Loading branch information
johann-crabnebula authored Nov 20, 2023
1 parent 08875cb commit 4183682
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from "vitest";
import { calculateSpanColorFromRelativeDuration } from "../calculate-span-color-from-relative-duration";

describe("calculateSpanColorFromRelativeDuration", () => {
Expand Down
1 change: 0 additions & 1 deletion web-client/src/lib/span/tests/find-spans-by-name.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect } from "vitest";
import { findSpansByName } from "../find-spans-by-name";
import { metadata } from "./fixtures/metadata";
import { spans } from "./fixtures/spans";
Expand Down
1 change: 0 additions & 1 deletion web-client/src/lib/span/tests/format-spans-for-ui.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect } from "vitest";
import { formatSpansForUi } from "../format-spans-for-ui";
import { spans } from "./fixtures/spans";
import { metadata } from "./fixtures/metadata";
Expand Down
1 change: 0 additions & 1 deletion web-client/src/lib/span/tests/formatters.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe } from "vitest";
import {
convertTimestampToNanoseconds,
formatMs,
Expand Down
1 change: 0 additions & 1 deletion web-client/tests/store/span-metadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from "vitest";
import {
type Metadata,
Metadata_Kind,
Expand Down
1 change: 0 additions & 1 deletion web-client/tests/store/span-waterfall.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, expect, it } from "vitest";
import { Span } from "~/lib/connection/monitor";
import { updatedSpans } from "~/lib/span/update-spans";

Expand Down
4 changes: 3 additions & 1 deletion web-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"noFallthroughCasesInSwitch": true,

"jsx": "preserve",
"jsxImportSource": "solid-js"
"jsxImportSource": "solid-js",

"types": ["vitest/globals"]
},
"include": ["src", "tests"]
}

0 comments on commit 4183682

Please sign in to comment.