front/jest.setup.ts
Nikolai Petukhov dd16f42995 working tests
2024-10-19 10:13:06 +03:00

15 lines
348 B
TypeScript

import { jest } from '@jest/globals';
import '@testing-library/jest-dom';
import mockedConfig from './bro.config.js'
jest.mock('@brojs/cli', () => {
return {
getNavigations() {
return mockedConfig.navigations
},
getNavigationsValue(key) {
return mockedConfig.navigations[key]
}
}
})