From 28a69a41815c89f8e377e2add2d167854a5b5084 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Wed, 11 Sep 2024 10:19:29 +0200 Subject: [PATCH] fix(snapshots): missing types when imported --- .changeset/lemon-otters-carry.md | 5 +++++ lib/snapshots.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/lemon-otters-carry.md diff --git a/.changeset/lemon-otters-carry.md b/.changeset/lemon-otters-carry.md new file mode 100644 index 0000000..5a6af03 --- /dev/null +++ b/.changeset/lemon-otters-carry.md @@ -0,0 +1,5 @@ +--- +"mocha-chai-rdf": patch +--- + +Type for `toMatchSnapshot` was not automatically imported with `snapshots.js` diff --git a/lib/snapshots.ts b/lib/snapshots.ts index b3647d6..3333120 100644 --- a/lib/snapshots.ts +++ b/lib/snapshots.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ +import 'mocha-chai-jest-snapshot' import { jestSnapshotPlugin } from 'mocha-chai-jest-snapshot' import rdf from '@zazuko/env-node'