diff --git a/packages/replay-worker/jest.config.js b/packages/replay-worker/jest.config.js deleted file mode 100644 index 24f49ab59a4c..000000000000 --- a/packages/replay-worker/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../jest/jest.config.js'); diff --git a/packages/replay-worker/package.json b/packages/replay-worker/package.json index 07e967a3bc33..597e44329f33 100644 --- a/packages/replay-worker/package.json +++ b/packages/replay-worker/package.json @@ -32,8 +32,8 @@ "clean": "rimraf build", "fix": "eslint . --format stylish --fix", "lint": "eslint . --format stylish", - "test": "jest", - "test:watch": "jest --watch" + "test": "vitest run", + "test:watch": "vitest --watch" }, "repository": { "type": "git", diff --git a/packages/replay-worker/test/unit/Compressor.test.ts b/packages/replay-worker/test/unit/Compressor.test.ts index 9ac4a5bb5a6c..dcce14edce70 100644 --- a/packages/replay-worker/test/unit/Compressor.test.ts +++ b/packages/replay-worker/test/unit/Compressor.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + import { decompressSync, strFromU8 } from 'fflate'; import { Compressor } from '../../src/Compressor'; diff --git a/packages/replay-worker/tsconfig.test.json b/packages/replay-worker/tsconfig.test.json index 6a49bbfc2a41..2910a21e50fc 100644 --- a/packages/replay-worker/tsconfig.test.json +++ b/packages/replay-worker/tsconfig.test.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", - "include": ["test/**/*.ts"], + "include": ["test/**/*.ts", "vite.config.ts"], "compilerOptions": { - "types": ["node", "jest"] + "types": ["node"] } } diff --git a/packages/replay-worker/vite.config.ts b/packages/replay-worker/vite.config.ts new file mode 100644 index 000000000000..0582a58f479a --- /dev/null +++ b/packages/replay-worker/vite.config.ts @@ -0,0 +1,5 @@ +import baseConfig from '../../vite/vite.config'; + +export default { + ...baseConfig, +};