mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 22:54:07 +00:00
* feat(phase-1): allow user to customize keybindings * fix: necessary changes for customizied keybindings to work * fix: updated hotkeys provider * fix: test cases for edit keybindings in preferences * fix: removed old keyboard shortcuts test cases * fix: resolved coderabbit coments * fix: fixed move tabs test cases * feat: provided customized keybindings shorcut for codemirror instacnces * fix: handle closetabs/closeAllTabs in RequestTab/index.js for better consitency * fix: resolved comments * fix: resolved zoom issues * fix: revert codemirror instacnces * fix: handle codemirror instances shortcut in .Pass * feat: integrate shorcut keys with codemirror instacneces * fix: ui updates * fix: updated shortcuts * fix: test cases * chore: revert `alt-enter` keybind * chore: allow jest to replace esm spec in store * chore: lint whitespace fix --------- Co-authored-by: shubh-bruno <shubh-bruno@shubh-bruno.local>
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
module.exports = {
|
|
rootDir: '.',
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': '<rootDir>/jest/transformers/babel-with-esm-replacements.cjs'
|
|
// '^.+\\.[jt]sx?$': [require("./jest/transformers/with-replacements.cjs"),'babel-jest']
|
|
},
|
|
transformIgnorePatterns: [
|
|
'/node_modules/(?!strip-json-comments|nanoid|xml-formatter)/'
|
|
],
|
|
moduleNameMapper: {
|
|
'^assets/(.*)$': '<rootDir>/src/assets/$1',
|
|
'^components/(.*)$': '<rootDir>/src/components/$1',
|
|
'^hooks/(.*)$': '<rootDir>/src/hooks/$1',
|
|
'^themes/(.*)$': '<rootDir>/src/themes/$1',
|
|
'^api/(.*)$': '<rootDir>/src/api/$1',
|
|
'^pageComponents/(.*)$': '<rootDir>/src/pageComponents/$1',
|
|
'^providers/(.*)$': '<rootDir>/src/providers/$1',
|
|
'^utils/(.*)$': '<rootDir>/src/utils/$1',
|
|
'^test-utils/(.*)$': '<rootDir>/src/test-utils/$1'
|
|
},
|
|
clearMocks: true,
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
testEnvironment: 'jsdom',
|
|
setupFilesAfterEnv: ['@testing-library/jest-dom'],
|
|
setupFiles: [
|
|
'<rootDir>/jest.setup.js'
|
|
],
|
|
testMatch: [
|
|
'<rootDir>/src/**/*.spec.[jt]s?(x)'
|
|
]
|
|
};
|