Skip to content

Commit 2538588

Browse files
Configure the stack trace limit at very beginning of the test runner
1 parent 096ee8e commit 2538588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/npm-packages/ruby-wasm-wasi/tools/run-test-unit.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ const test = async (instantiate) => {
201201
const rootTestFile = "/__root__/test/test_unit.rb";
202202
const { vm, wasi } = await instantiate(rootTestFile);
203203

204-
Error.stackTraceLimit = Infinity;
205204

206205
await vm.evalAsync(`
207206
require 'test/unit'
@@ -212,6 +211,7 @@ const test = async (instantiate) => {
212211
};
213212

214213
const main = async () => {
214+
Error.stackTraceLimit = Infinity;
215215
if (process.env.ENABLE_COMPONENT_TESTS && process.env.ENABLE_COMPONENT_TESTS !== 'false') {
216216
await test(instantiateComponent);
217217
} else {

0 commit comments

Comments
 (0)