Skip to content

Commit ecb3c7c

Browse files
authored
chore(mocha-config): update jsdom to 24 to get rid of container query warnings (#463)
1 parent 5760407 commit ecb3c7c

File tree

3 files changed

+215
-267
lines changed

3 files changed

+215
-267
lines changed

configs/mocha-config-devtools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"chai-dom": "^1.9.0",
3636
"chai-enzyme": "^1.0.0-beta.1",
3737
"enzyme": "^3.11.0",
38-
"global-jsdom": "^9.1.0",
38+
"global-jsdom": "^24.0.0",
3939
"identity-obj-proxy": "^3.0.0",
40-
"jsdom": "^22.1.0",
40+
"jsdom": "^24.1.3",
4141
"react-16-node-hanging-test-fix": "^1.0.0",
4242
"sinon-chai": "^3.7.0",
4343
"ts-node": "^10.9.2",

configs/mocha-config-devtools/react.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@ describe('mocha-config-devtools/react', function () {
77
document.body.appendChild(document.createTextNode('Hello world!'));
88
assert(document.body.innerHTML === 'Hello world!');
99
});
10+
11+
it('parses container queries', function () {
12+
const tag = document.createElement('style');
13+
tag.appendChild(
14+
document.createTextNode(
15+
`@container compass-workspace-container (width < 900px){.test{display:none;}}`
16+
)
17+
);
18+
document.head.appendChild(tag);
19+
});
1020
});

0 commit comments

Comments
 (0)