Skip to content

Commit

Permalink
vitest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Nov 20, 2023
1 parent 924bbe0 commit 9c092bf
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 85 deletions.
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@polkadot/types-codec": "10.11.1",
"@polkadot/util": "12.6.1",
"@polkadot/util-crypto": "12.6.1",
"@vitest/ui": "1.0.0-beta.5",
"@zombienet/orchestrator": "0.0.65",
"@zombienet/utils": "0.0.24",
"bottleneck": "2.19.5",
Expand All @@ -91,7 +92,7 @@
"node-fetch": "3.3.2",
"semver": "7.5.4",
"viem": "1.18.0",
"vitest": "1.0.0-beta.3",
"vitest": "1.0.0-beta.5",
"web3": "4.2.1",
"web3-providers-ws": "4.0.7",
"ws": "8.14.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cmds/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function addThreadConfig(
isolate: true,
minThreads: 1,
maxThreads: 1,
singleThread: true,
singleThread: false,
useAtomics: false,
},
},
Expand All @@ -142,7 +142,7 @@ function addThreadConfig(
minThreads: 1,
maxThreads: 3,
singleThread: false,
useAtomics: false,
useAtomics: true,
};
}

Expand Down
5 changes: 4 additions & 1 deletion packages/cli/src/internal/logging.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const originalWrite = process.stderr.write.bind(process.stderr);
const blockList = ["has multiple versions, ensure that there is only one installed", "Unable to map [u8; 32] to a lookup index"];
const blockList = [
"has multiple versions, ensure that there is only one installed",
"Unable to map [u8; 32] to a lookup index",
];

process.stderr.write = (
chunk: string | Uint8Array,
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"rlp": "3.0.0",
"semver": "7.5.4",
"viem": "1.16.6",
"vitest": "1.0.0-beta.3",
"vitest": "1.0.0-beta.5",
"web3": "4.2.1",
"ws": "8.14.2",
"yaml": "2.3.4",
Expand Down
Loading

0 comments on commit 9c092bf

Please sign in to comment.