Skip to content

Commit b6eb526

Browse files
committed
test: configure shared timeout
1 parent aa4f381 commit b6eb526

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

packages/rstack/rstack.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ define.test(async () => {
1111
// Temporary projects may contain files that match Rstest's test glob.
1212
exclude: ['**/test-temp-*/**'],
1313
extends: withRslibConfig(),
14+
testTimeout: 30_000,
1415
source: {
1516
tsconfigPath: './tests/tsconfig.json',
1617
},

packages/rstack/tests/config/define-doc/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ test('should build docs with define.doc config', async ({ prepareDist, execCli,
1212
const output = getFileContent(files, 'index.html');
1313

1414
expect(output).toContain(expectedText);
15-
}, 30_000);
15+
});

packages/rstack/tests/config/reload-app-config/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ define.app({
4545
);
4646

4747
await waitForFile(dist2);
48-
}, 30_000);
48+
});
4949

5050
test('should reload config when an imported file changes', async ({ execCliAsync, logHelper }) => {
5151
const configFile = path.join(import.meta.dirname, 'test-temp-import.config.ts');
@@ -70,4 +70,4 @@ define.app({
7070
await writeFile(importedFile, '// changed\n');
7171

7272
await logHelper.expectLog('restarting server as test-temp-imported.ts changed');
73-
}, 30_000);
73+
});

packages/rstack/tests/config/reload-doc-config/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ define.doc({
4747

4848
await logHelper.expectLog('restarting server as test-temp-user-watch.txt changed');
4949
await logHelper.expectBuildEnd();
50-
}, 30_000);
50+
});
5151

5252
test('should restart doc dev server when an imported config file changes', async ({
5353
execCliAsync,
@@ -77,4 +77,4 @@ define.doc({
7777

7878
await logHelper.expectLog('restarting server as test-temp-imported.ts changed');
7979
await logHelper.expectBuildEnd();
80-
}, 30_000);
80+
});

0 commit comments

Comments
 (0)