Skip to content

Commit

Permalink
Configure the stack trace limit at very beginning of the test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed May 6, 2024
1 parent 096ee8e commit 2538588
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ const test = async (instantiate) => {
const rootTestFile = "/__root__/test/test_unit.rb";
const { vm, wasi } = await instantiate(rootTestFile);

Error.stackTraceLimit = Infinity;

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

const main = async () => {
Error.stackTraceLimit = Infinity;
if (process.env.ENABLE_COMPONENT_TESTS && process.env.ENABLE_COMPONENT_TESTS !== 'false') {
await test(instantiateComponent);
} else {
Expand Down

0 comments on commit 2538588

Please sign in to comment.