Skip to content

Commit

Permalink
fix bun test
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Sep 20, 2023
1 parent 2037bbf commit 356b223
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ipy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import py, { Python } from "./mod.ts";
import { Pip, pip } from "./ext/pip.ts";

declare global {
const py: Python;
const pip: Pip;
}

Object.defineProperty(globalThis, "py", {
value: py,
writable: false,
enumerable: false,
configurable: false,
});

Object.defineProperty(globalThis, "pip", {
value: pip,
writable: false,
enumerable: false,
configurable: false,
});

export * from "./mod.ts";
export * from "./ext/pip.ts";
export default py;
1 change: 1 addition & 0 deletions test/bun.test.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import "../src/bun_compat.js";
import "./bun_compat.js";
import "./test.ts";

0 comments on commit 356b223

Please sign in to comment.