From 01612b7a759072e14b0a543c5d3e57b5734b8dd6 Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Sat, 2 Jul 2022 15:55:45 +1000 Subject: [PATCH] update cssom package to rrweb self-owned package 'rrweb-cssom' (#925) * test: update cssom package to rrweb self-owned package 'rrweb-cssom' * style: remove outdated comments --- package.json | 2 +- packages/rrdom/test/diff.test.ts | 8 +------- yarn.lock | 6 +++++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index cddbf73f0a..18d5cae5cf 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,6 @@ "lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'" }, "resolutions": { - "**/jsdom/cssom": "^0.5.0" + "**/jsdom/cssom": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz" } } diff --git a/packages/rrdom/test/diff.test.ts b/packages/rrdom/test/diff.test.ts index efb5aaaa8f..b267efc550 100644 --- a/packages/rrdom/test/diff.test.ts +++ b/packages/rrdom/test/diff.test.ts @@ -1210,9 +1210,7 @@ describe('diff algorithm for rrdom', () => { expect(styleEl.sheet?.cssRules[0].cssText).toEqual('div {color: black;}'); }); - // JSDOM/CSSOM is currently broken for this test - // remove '.skip' once https://github.com/NV/CSSOM/pull/113#issue-712485075 is merged - it.skip('should insert rule at index [0,0] and keep existing rules', () => { + it('should insert rule at index [0,0] and keep existing rules', () => { document.write(`