fix: type errors for SlotMixin.test.js

This commit is contained in:
okadurin 2024-03-18 11:27:08 +01:00 committed by Thijs Louisse
parent 8b90d52064
commit 7ecf043679
3 changed files with 177 additions and 2 deletions

View file

@ -0,0 +1,162 @@
{
"meta": {
"searchType": "ast-analyzer",
"analyzerMeta": {
"name": "match-imports",
"requiredAst": "swc",
"identifier": "importing-target-project_0.0.2-target-mock_+_exporting-ref-project_1.0.0__1789378150",
"targetProject": {
"mainEntry": "./target-src/match-imports/root-level-imports.js",
"name": "importing-target-project",
"version": "0.0.2-target-mock",
"commitHash": "[not-a-git-root]"
},
"referenceProject": {
"mainEntry": "./index.js",
"name": "exporting-ref-project",
"version": "1.0.0",
"commitHash": "[not-a-git-root]"
},
"configuration": {
"gatherFilesConfig": {},
"targetProjectResult": null,
"referenceProjectResult": null,
"skipCheckMatchCompatibility": false,
"addSystemPathsInResult": false
}
}
},
"queryOutput": [
{
"exportSpecifier": {
"id": "[default]::./index.js::exporting-ref-project",
"name": "[default]",
"filePath": "./index.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/root-level-imports.js",
"./target-src/match-subclasses/internalProxy.js"
]
}
]
},
{
"exportSpecifier": {
"id": "RefClass::./index.js::exporting-ref-project",
"name": "RefClass",
"filePath": "./index.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/find-customelements/multiple.js",
"./target-src/match-imports/root-level-imports.js",
"./target-src/match-subclasses/ExtendedComp.js"
]
}
]
},
{
"exportSpecifier": {
"id": "RefRenamedClass::./index.js::exporting-ref-project",
"name": "RefRenamedClass",
"filePath": "./index.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/root-level-imports.js"
]
}
]
},
{
"exportSpecifier": {
"id": "[file]::./ref-component.js::exporting-ref-project",
"name": "[file]",
"filePath": "./ref-component.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/deep-imports.js"
]
}
]
},
{
"exportSpecifier": {
"id": "RefClass::./ref-src/core.js::exporting-ref-project",
"name": "RefClass",
"filePath": "./ref-src/core.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/deep-imports.js"
]
}
]
},
{
"exportSpecifier": {
"id": "[default]::./ref-src/core.js::exporting-ref-project",
"name": "[default]",
"filePath": "./ref-src/core.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/deep-imports.js"
]
}
]
},
{
"exportSpecifier": {
"id": "[file]::./ref-src/core.js::exporting-ref-project",
"name": "[file]",
"filePath": "./ref-src/core.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/deep-imports.js"
]
}
]
},
{
"exportSpecifier": {
"id": "resolvePathCorrect::./ref-src/folder/index.js::exporting-ref-project",
"name": "resolvePathCorrect",
"filePath": "./ref-src/folder/index.js",
"project": "exporting-ref-project"
},
"matchesPerProject": [
{
"project": "importing-target-project",
"files": [
"./target-src/match-imports/deep-imports.js"
]
}
]
}
]
}

View file

@ -1,5 +1,18 @@
# @lion/ui
## 0.6.0-alpha.5
### Minor Changes
- [core] allow SlotRerenderObject to first render on connectedCallback via `firstRenderOnConnected`
### Patch Changes
- [input-tel-dropdown] use ScopedElementsMixin in to run test-suite with select-rich
- [core] add Firefox to browserDetection
- [overlays] skip local-positioning tests for Firefox, and added a todo to fix later
- [textarea] set box-sizing in tests to make it work cross browser
## 0.6.0-alpha.4
### Patch Changes

View file

@ -1,6 +1,5 @@
import sinon from 'sinon';
import { defineCE, expect, fixture, fixtureSync, unsafeStatic, html } from '@open-wc/testing';
// @ts-expect-error
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
import { SlotMixin } from '@lion/ui/core.js';
import { LitElement } from 'lit';
@ -516,6 +515,7 @@ describe('SlotMixin', () => {
class extends ScopedElementsMixin(SlotMixin(LitElement)) {
static get scopedElements() {
return {
// @ts-expect-error
...super.scopedElements,
'scoped-elm': ScopedEl,
};
@ -548,10 +548,10 @@ describe('SlotMixin', () => {
class ScopedEl extends LitElement {}
const tagName = defineCE(
// @ts-expect-error
class extends ScopedElementsMixin(SlotMixin(LitElement)) {
static get scopedElements() {
return {
// @ts-expect-error
...super.scopedElements,
'scoped-el': ScopedEl,
};