Skip to content

Commit

Permalink
reset the testTimeout to 5 seconds and change it directly in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
omer-priel committed Nov 23, 2023
1 parent fd208dd commit 9ae00eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/mermaid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ae00eb

Please sign in to comment.