We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107eb5c commit d6e2639Copy full SHA for d6e2639
src/index.test.ts
@@ -1,5 +1,13 @@
1
+import { Layer } from 'expression-globals-typescript';
2
import { animate } from './index';
3
4
+// This let's Jest: ReferenceError: Cannot access before initialization
5
+// https://stackoverflow.com/questions/61157392/jest-mock-aws-sdk-referenceerror-cannot-access-before-initialization
6
+jest.mock('expression-globals-typescript', () => {
7
+ const mLayer = { getItem: jest.fn().mockReturnThis(), promise: jest.fn() };
8
+ return { Layer: jest.fn(() => mLayer) };
9
+});
10
+
11
test('animates between default keys', () => {
12
expect(
13
animate(
0 commit comments