mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
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
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import chaiJestSnapshot from 'chai-jest-snapshot';
|
||||
import * as chaiJestSnapshot from 'chai-jest-snapshot';
|
||||
import { expect } from 'chai';
|
||||
|
||||
chai.use(chaiJestSnapshot);
|
||||
|
||||
Vendored
+1
-1
@@ -40,4 +40,4 @@ interface ChaiJestSnapshot {
|
||||
}
|
||||
|
||||
declare var ChaiJestSnapshot: ChaiJestSnapshot;
|
||||
export default ChaiJestSnapshot;
|
||||
export = ChaiJestSnapshot;
|
||||
|
||||
Reference in New Issue
Block a user