front/jest.setup.ts

18 lines
433 B
TypeScript
Raw Permalink Normal View History

2024-10-19 10:13:06 +03:00
import { jest } from '@jest/globals';
2024-10-19 07:48:30 +03:00
import '@testing-library/jest-dom';
2024-10-19 10:13:06 +03:00
import mockedConfig from './bro.config.js'
jest.mock('@brojs/cli', () => {
return {
getNavigations() {
return mockedConfig.navigations
},
getNavigationsValue(key) {
return mockedConfig.navigations[key]
2024-10-19 10:57:44 +03:00
},
getConfigValue(key) {
return mockedConfig.config[key]
2024-10-19 10:13:06 +03:00
}
}
})