Fix broken tests

This commit is contained in:
Remco Haszing 2023-04-13 15:13:52 +02:00
parent aa5c1a5f78
commit e84c5ec4c9
No known key found for this signature in database
GPG Key ID: 40D9F5FE9155FD3C
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import flowDb from '../flowDb';
import flow from './flow';
import { setConfig } from '../../../config';
import flowDb from '../flowDb.js';
import flow from './flow.jison';
import { setConfig } from '../../../config.js';
setConfig({
securityLevel: 'strict',

View File

@ -9,7 +9,7 @@ beforeAll(async () => {
});
const spyOn = vi.spyOn;
vi.mock('./mermaidAPI');
vi.mock('./mermaidAPI.js');
afterEach(() => {
vi.clearAllMocks();