Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 1.2KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. /// <reference types="node" />
  8. import type { Context } from 'vm';
  9. import { JSDOM } from 'jsdom';
  10. import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
  11. import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
  12. import type { Config, Global } from '@jest/types';
  13. import { ModuleMocker } from 'jest-mock';
  14. declare type Win = Window & Global.Global & {
  15. Error: {
  16. stackTraceLimit: number;
  17. };
  18. };
  19. declare class JSDOMEnvironment implements JestEnvironment<number> {
  20. dom: JSDOM | null;
  21. fakeTimers: LegacyFakeTimers<number> | null;
  22. fakeTimersModern: ModernFakeTimers | null;
  23. global: Win;
  24. errorEventListener: ((event: Event & {
  25. error: Error;
  26. }) => void) | null;
  27. moduleMocker: ModuleMocker | null;
  28. constructor(config: Config.ProjectConfig, options?: EnvironmentContext);
  29. setup(): Promise<void>;
  30. teardown(): Promise<void>;
  31. getVmContext(): Context | null;
  32. }
  33. export = JSDOMEnvironment;