All files / apps/huella-legal/app/plugins devWarnings.client.ts

100% Statements 7/7
100% Branches 6/6
100% Functions 2/2
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  41x     40x     40x   41x       39x   2x      
export default defineNuxtPlugin(() => {
    if (!import.meta.env.DEV) return;
 
    // eslint-disable-next-line no-console -- kept so every other message still reaches the console
    const originalInfo = console.info;
 
    // eslint-disable-next-line no-console -- the filter wraps console.info itself
    console.info = (...args: unknown[]) => {
        // Unpatched, known Vue bug - src: https://github.com/nuxt/nuxt/discussions/25973#discussioncomment-12203169
        if (
            typeof args[0] === "string" &&
            args[0].includes("<Suspense> is an experimental feature")
        ) {
            return;
        }
        originalInfo(...args);
    };
});