Skip to content

Commit

Permalink
Import here to avoid browser errors
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jul 15, 2024
1 parent f7c2b86 commit 687288c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/set.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { Identities, Identity, KeyStore, KeyStoreType } from "@orbitdb/core";
import { expect } from "aegir/chai";
import { isBrowser } from "wherearewe";

const rimrafImport = import("rimraf");

const keysPath = "./testkeys";

describe("Set Database", () => {
Expand Down Expand Up @@ -38,7 +36,7 @@ describe("Set Database", () => {
await keystore.close();
}
if (!isBrowser) {
const { rimraf } = await rimrafImport;
const { rimraf } = await import("rimraf");
await rimraf(keysPath);
await rimraf("./orbitdb");
await rimraf("./ipfsS");
Expand Down

0 comments on commit 687288c

Please sign in to comment.