From 233bdad5ad2ae9beada01d533937929cf1982b04 Mon Sep 17 00:00:00 2001 From: Matthew Bull Date: Wed, 9 May 2018 14:54:57 +0100 Subject: [PATCH] Fixing export to match package chai-jest-snapshots doesn't use `export default`, so `import * as chaiJestSnapshots from 'chai-jest-snapshots'` gives compiler errors and `import chaiJestSnapshots from 'chai-jest-snapshots'` gives runtime errors --- types/chai-jest-snapshot/chai-jest-snapshot-tests.ts | 2 +- types/chai-jest-snapshot/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/chai-jest-snapshot/chai-jest-snapshot-tests.ts b/types/chai-jest-snapshot/chai-jest-snapshot-tests.ts index c93c4a1d04..cd35998db8 100644 --- a/types/chai-jest-snapshot/chai-jest-snapshot-tests.ts +++ b/types/chai-jest-snapshot/chai-jest-snapshot-tests.ts @@ -1,4 +1,4 @@ -import chaiJestSnapshot from 'chai-jest-snapshot'; +import * as chaiJestSnapshot from 'chai-jest-snapshot'; import { expect } from 'chai'; chai.use(chaiJestSnapshot); diff --git a/types/chai-jest-snapshot/index.d.ts b/types/chai-jest-snapshot/index.d.ts index 470e4fa423..27ec049b14 100644 --- a/types/chai-jest-snapshot/index.d.ts +++ b/types/chai-jest-snapshot/index.d.ts @@ -40,4 +40,4 @@ interface ChaiJestSnapshot { } declare var ChaiJestSnapshot: ChaiJestSnapshot; -export default ChaiJestSnapshot; +export = ChaiJestSnapshot;