Skip to content

Commit 16de0b4

Browse files
Migrate init.js to ESM and use source files directly in tests
1 parent 479a1d7 commit 16de0b4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/npm-packages/ruby-wasm-wasi/test/init.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const fs = require("fs/promises");
2-
const path = require("path");
3-
const { WASI } = require("wasi");
4-
const { RubyVM } = require("../dist/cjs/index");
1+
import * as fs from "fs/promises";
2+
import * as path from "path";
3+
import { WASI } from "wasi";
4+
import { RubyVM } from "../src/index";
55

66
const rubyModule = (async () => {
77
let binaryPath;

packages/npm-packages/ruby-wasm-wasi/test/package.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as path from "path";
22
import * as fs from "fs/promises";
33
import { WASI } from "wasi";
4-
import { RubyVM } from "../dist/esm/index";
5-
import { DefaultRubyVM } from "../dist/esm/node";
4+
import { RubyVM } from "../src/index";
5+
import { DefaultRubyVM } from "../src/node";
66
import { describe, test, expect } from "vitest"
77

88
const initRubyVM = async (rubyModule, args) => {

0 commit comments

Comments
 (0)