diff --git a/package.json b/package.json index 54afb7d78e..368951269c 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "stylelint-config-standard-scss": "13.1.0", "stylelint-scss": "6.5.1", "ts-lit-plugin": "2.0.2", - "typescript": "5.5.4", + "typescript": "5.6.2", "typescript-eslint": "8.5.0", "urlpattern-polyfill": "10.0.0", "vite": "5.4.4", diff --git a/src/elements/core/controllers/language-controller.spec.ts b/src/elements/core/controllers/language-controller.spec.ts index b7e127f34c..3a94ca7e41 100644 --- a/src/elements/core/controllers/language-controller.spec.ts +++ b/src/elements/core/controllers/language-controller.spec.ts @@ -74,27 +74,4 @@ describe('LanguageController', () => { await aTimeout(0); expect(state.counter).to.equal(2); }); - - // This test can only be run in isolation, as LanguageController has global state. - // It is possible to verify this test by switching it to it.only. - // eslint-disable-next-line no-constant-condition - if (!'must be run in isolation') { - it('should only update language if connected', async () => { - document.documentElement.setAttribute('lang', 'fr'); - await aTimeout(0); - expect(controller.current).to.equal('fr', 'Language should be detected when connected'); - controller.hostDisconnected(); - - document.documentElement.setAttribute('lang', 'en'); - await aTimeout(0); - - expect(controller.current).to.equal('fr', 'Language should not be update when disconnected'); - - controller.hostConnected(); - expect(controller.current).to.equal( - 'en', - 'Language should immediately be update when connected', - ); - }); - } }); diff --git a/yarn.lock b/yarn.lock index 5b461b0666..4a0006f33d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10194,7 +10194,12 @@ typescript@5.4.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372" integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ== -typescript@5.5.4, typescript@^5.4.4, typescript@^5.4.5, typescript@^5.5.4: +typescript@5.6.2: + version "5.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" + integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw== + +typescript@^5.4.4, typescript@^5.4.5, typescript@^5.5.4: version "5.5.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==