From 9df9946d7befa28a9d2633aecbce5e6ca11be9cf Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Wed, 26 Jun 2024 15:53:38 +0200 Subject: [PATCH] Migrate from jest to vitest --- packages/rrweb-snapshot/test/rebuild.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/rrweb-snapshot/test/rebuild.test.ts b/packages/rrweb-snapshot/test/rebuild.test.ts index a685512e58..5ad07e94d1 100644 --- a/packages/rrweb-snapshot/test/rebuild.test.ts +++ b/packages/rrweb-snapshot/test/rebuild.test.ts @@ -3,7 +3,7 @@ */ import * as fs from 'fs'; import * as path from 'path'; -import { describe, it, beforeEach, expect } from 'vitest'; +import { describe, it, beforeEach, expect as _expect } from 'vitest'; import { adaptCssForReplay, buildNodeWithSN, @@ -12,8 +12,6 @@ import { import { NodeType } from '../src/types'; import { createMirror, Mirror } from '../src/utils'; -import { expect as _expect } from '@jest/globals'; - const expect = _expect as unknown as { (actual: T): { toMatchCss(expected: string): void;