Skip to content

Commit 40238e6

Browse files
doc: update doc
1 parent d977a1a commit 40238e6

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

docs/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: QuickJS Sandbox in Javascript & Typescript
2+
description: A webassembly sandbox to safely execute Javascript inside of Javascript/Typescript applications

docs/_posts/release.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: post
3+
title: "Version 1.0.0 of the QuickJS sandbox released"
4+
date: YYYY-MM-DD hh:mm:ss -0000
5+
categories: release
6+
---
7+
8+
Happy to announce

docs/about.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# About

vendor/testrunner/testRunner.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const rootSuite: Suite = {
1616
}
1717

1818
let currentSuite = rootSuite
19-
const DEFAULT_TIMEOUT = 5000
19+
const DEFAULT_TESTRUN_TIMEOUT = 5000
2020

2121
/**
2222
* Defines a test suite with a given title.
@@ -87,6 +87,8 @@ function afterEach(fn: HookFunction) {
8787
* @param timeout - The timeout in milliseconds.
8888
* @returns A promise that resolves if the function completes in time, or rejects if it times out.
8989
*/
90+
91+
// biome-ignore lint/complexity/noBannedTypes: <explanation>
9092
async function runWithTimeout(fn: Function, timeout: number): Promise<void> {
9193
let timeoutHandle: ReturnType<typeof setTimeout> | undefined
9294
const res = await Promise.race([
@@ -217,7 +219,7 @@ async function runSuite(suite: Suite, timeout: number): Promise<SuiteResult> {
217219
* @param timeout - The timeout in milliseconds for hooks and tests. Defaults to 5000ms.
218220
* @returns A promise that resolves to the results of the root suite.
219221
*/
220-
async function runTests(timeout: number = DEFAULT_TIMEOUT): Promise<SuiteResult> {
222+
async function runTests(timeout: number = DEFAULT_TESTRUN_TIMEOUT): Promise<SuiteResult> {
221223
const result = await runSuite(rootSuite, timeout)
222224
return result
223225
}

0 commit comments

Comments
 (0)