Skip to content
Snippets Groups Projects
test.ts 542 B
Newer Older
  • Learn to ignore specific revisions
  • import 'jest-preset-angular/setup-jest';
    
    François Agneray's avatar
    François Agneray committed
    
    
    Object.defineProperty(window, 'CSS', { value: null });
    Object.defineProperty(window, 'getComputedStyle', {
        value: () => {
            return {
                display: 'none',
                appearance: ['-webkit-appearance'],
            };
        },
    });
    
    François Agneray's avatar
    François Agneray committed
    
    
    Object.defineProperty(document, 'doctype', {
        value: '<!DOCTYPE html>',
    });
    Object.defineProperty(document.body.style, 'transform', {
        value: () => {
            return {
                enumerable: true,
                configurable: true,
            };
        },
    });