Open filters in side panel (#13304)
In this PR: - Open filters in the side panel for **workflows** - Open filters in the side panel for **workflow versions** - Preparation for opening filters in the side panel for **workflow runs** - Add many tests to increase the coverage Remaining to do: - Open filters in the side panel for **workflow runs** - Upon filter creation, open it in the side panel --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eeade6e94c
commit
924e599cba
+21
@@ -0,0 +1,21 @@
|
||||
import { checkIfItsAViteStaleChunkLazyLoadingError } from '@/error-handler/utils/checkIfItsAViteStaleChunkLazyLoadingError';
|
||||
|
||||
describe('checkIfItsAViteStaleChunkLazyLoadingError', () => {
|
||||
it('should return true when error message contains the Vite stale chunk error text', () => {
|
||||
const error = new Error(
|
||||
'Failed to fetch dynamically imported module: /some/module.js',
|
||||
);
|
||||
|
||||
const result = checkIfItsAViteStaleChunkLazyLoadingError(error);
|
||||
|
||||
expect(result).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false when error message does not contain the Vite stale chunk error text', () => {
|
||||
const error = new Error('Some other error message');
|
||||
|
||||
const result = checkIfItsAViteStaleChunkLazyLoadingError(error);
|
||||
|
||||
expect(result).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user