Skip to content

Commit 0be7dfb

Browse files
committed
disabled default hook timeouts
1 parent 8b5f5d6 commit 0be7dfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

@bellatrix/core/src/test/vitest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ export function SuiteDecorator<T extends BellatrixTest>(target: ParameterlessCto
3434
const title = target.name; // or passed as @Suite('title') or similar
3535

3636
nativeLibrary.describe(title, () => {
37-
nativeLibrary.beforeAll(async () => await testClassSymbolMethods.beforeAll.call(testClassInstance));
37+
nativeLibrary.beforeAll(async () => await testClassSymbolMethods.beforeAll.call(testClassInstance), 0);
3838

3939
nativeLibrary.beforeEach(async () => {
4040
const regex = new RegExp(`.*\\b.* > ${title} > \\b(.*)`);
4141
const match = regex.exec(nativeLibrary.expect.getState().currentTestName ?? '');
4242
const currentTestName = (match?.length ?? 0) > 1 ? match![1] : '';
4343
setCurrentTest(currentTestName, testClassInstance[currentTestName as keyof T] as (...args: unknown[]) => (Promise<void> | void), testClass.constructor);
4444
await testClassSymbolMethods.beforeEach.call(testClassInstance);
45-
});
45+
}, 0);
4646

4747
nativeLibrary.afterEach(async () => {
4848
await testClassSymbolMethods.afterEach.call(testClassInstance);
4949
unsetCurrentTest(testClass.constructor);
50-
});
50+
}, 0);
5151

52-
nativeLibrary.afterAll(async () => await testClassSymbolMethods.afterAll.call(testClassInstance));
52+
nativeLibrary.afterAll(async () => await testClassSymbolMethods.afterAll.call(testClassInstance), 0);
5353

5454
for (const testMethod of testMethods) {
5555
nativeLibrary.test(testMethod, async () => {

0 commit comments

Comments
 (0)