Skip to content

Commit 0d5eb73

Browse files
authored
test: add missing vm.runInContext stubs (#14341)
1 parent 87c3b2f commit 0d5eb73

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

test/js/node/vm/vm.test.ts

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,42 @@ function testRunInContext({ fn, isIsolated, isNew }: TestRunInContextArg) {
272272
expect(result).toContain("foo.js");
273273
});
274274
}
275-
test.skip("can specify a line offset", () => {
276-
// TODO: use test.todo
275+
test.todo("can specify filename", () => {
276+
//
277277
});
278-
test.skip("can specify a column offset", () => {
279-
// TODO: use test.todo
278+
test.todo("can specify lineOffset", () => {
279+
//
280280
});
281-
test.skip("can specify a timeout", () => {
282-
const context = createContext({});
283-
const result = () =>
284-
fn("while (true) {};", context, {
285-
timeout: 1,
286-
});
287-
expect(result).toThrow(); // TODO: does not timeout
281+
test.todo("can specify columnOffset", () => {
282+
//
283+
});
284+
test.todo("can specify displayErrors", () => {
285+
//
286+
});
287+
test.todo("can specify timeout", () => {
288+
//
289+
});
290+
test.todo("can specify breakOnSigint", () => {
291+
//
292+
});
293+
test.todo("can specify cachedData", () => {
294+
//
295+
});
296+
test.todo("can specify importModuleDynamically", () => {
297+
//
298+
});
299+
300+
// https://github.com/oven-sh/bun/issues/10885 .if(isNew == true)
301+
test.todo("can specify contextName", () => {
302+
//
303+
});
304+
// https://github.com/oven-sh/bun/issues/10885 .if(isNew == true)
305+
test.todo("can specify contextOrigin", () => {
306+
//
307+
});
308+
// https://github.com/oven-sh/bun/issues/10885 .if(isNew == true)
309+
test.todo("can specify microtaskMode", () => {
310+
//
288311
});
289312
}
290313

0 commit comments

Comments
 (0)