working tests

This commit is contained in:
Nikolai Petukhov
2024-10-19 10:13:06 +03:00
parent f3e93bae19
commit dd16f42995
3 changed files with 16 additions and 3 deletions
+13
View File
@@ -1 +1,14 @@
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]
}
}
})