From 3f1ec6ef79265d296163d8f36654a3fb226970f4 Mon Sep 17 00:00:00 2001 From: Erik Kessler Date: Tue, 7 Apr 2020 13:52:17 -0400 Subject: [PATCH 1/2] Add a broken test --- types/tests/qunit-test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/tests/qunit-test.ts b/types/tests/qunit-test.ts index 4dc0e309..26d4a932 100644 --- a/types/tests/qunit-test.ts +++ b/types/tests/qunit-test.ts @@ -3,7 +3,7 @@ // of the library typechecks and invalid usage produces errors. import { module, test } from 'qunit'; -import { percySnapshot } from '@percy/ember'; +import percySnapshot from '@percy/ember'; module('Type declarations with QUnit', function() { test('snapshot requires at least one param', async function() { From 77bea193178fdd5a4467f221d9bd6dd2bc91a89c Mon Sep 17 00:00:00 2001 From: Erik Kessler Date: Tue, 7 Apr 2020 13:52:28 -0400 Subject: [PATCH 2/2] Add a default export --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 84f749e9..632f53e5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -16,6 +16,7 @@ type SnapshotFunction = ( ) => Promise; export const percySnapshot: SnapshotFunction; +export default SnapshotFunction; declare global { // If QUnit types are present, the actual contents of its