diff --git a/packages/expect/src/index.ts b/packages/expect/src/index.ts index b1e92628fee2..ce2f5acdbac4 100644 --- a/packages/expect/src/index.ts +++ b/packages/expect/src/index.ts @@ -24,4 +24,5 @@ export { addCustomEqualityTesters } from './jest-matcher-utils' export * from './jest-utils' export { getState, setState } from './state' export * from './types' +export * from './utils' export * as chai from 'chai' diff --git a/packages/vitest/src/integrations/snapshot/chai.ts b/packages/vitest/src/integrations/snapshot/chai.ts index 14d34cf6ea8b..908f1061d616 100644 --- a/packages/vitest/src/integrations/snapshot/chai.ts +++ b/packages/vitest/src/integrations/snapshot/chai.ts @@ -1,13 +1,12 @@ import type { Assertion, ChaiPlugin } from '@vitest/expect' import type { Test } from '@vitest/runner' -import { equals, iterableEquality, subsetEquality } from '@vitest/expect' +import { createAssertionMessage, equals, iterableEquality, recordAsyncExpect, subsetEquality, wrapAssertion } from '@vitest/expect' import { getNames } from '@vitest/runner/utils' import { addSerializer, SnapshotClient, stripSnapshotIndentation, } from '@vitest/snapshot' -import { createAssertionMessage, recordAsyncExpect, wrapAssertion } from '../../../../expect/src/utils' let _client: SnapshotClient