reset the testTimeout to 5 seconds and change it directly in the test

This commit is contained in:
Omer Priel
2023-11-23 14:55:09 +02:00
parent fd208ddcaf
commit 9ae00ebcdb
2 changed files with 1 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ describe('when using mermaid and ', () => {
).resolves.not.toThrow();
// should still render, even if lazyLoadedDiagrams fails
expect(mermaidAPI.render).toHaveBeenCalled();
});
}, 20_000);
it('should defer diagram load based on parameter', async () => {
let loaded = false;

View File

@@ -24,7 +24,6 @@ export default defineConfig({
reportsDirectory: './coverage/vitest',
exclude: ['**/node_modules/**', '**/tests/**', '**/__mocks__/**'],
},
testTimeout: 10000,
},
build: {
/** If you set esmExternals to true, this plugins assumes that