Skip to content

Commit

Permalink
skip if browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Sep 20, 2023
1 parent 8270d21 commit d110c27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/specs/http.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference lib="dom" />
import { describe, it, beforeEach } from "vitest";
import $RefParser from "../../lib/index.js";

Expand Down
2 changes: 1 addition & 1 deletion test/specs/relative-path/root.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from "../../utils/path.js";
import { expect, vi } from "vitest";
import helper from "../../utils/helper";

describe("Schemas with imports in relative and absolute locations work", () => {
describe.skipIf(process.env.BROWSER)("Schemas with imports in relative and absolute locations work", () => {
describe("Schemas with relative imports that should be resolved from the root", () => {
beforeAll(() => {
vi.spyOn(process, "cwd").mockImplementation(() => {
Expand Down

0 comments on commit d110c27

Please sign in to comment.