test: rewrite some files in .ts
#2279
CI.yml
on: pull_request
Lint
50s
Test with ESLint v8
2m 48s
Test without ESLint Stylistic
2m 6s
Test with typescript-eslint v7
2m 15s
Matrix: Test with old ESLint Stylistic
Matrix: Test
Annotations
2 errors and 1 warning
|
Test with ESLint v8
Process completed with exit code 1.
|
|
tests/lib/utils/ts-utils/index/get-component-emits.js > getComponentEmitsFromTypeDefineTypes > should return expected props with :<script setup lang="ts"> import { Emits } from './test'
defineEmits<Emits>() </script>:
tests/lib/utils/ts-utils/index/get-component-emits.js#L120
AssertionError:
[{"type":"unknown","name":null}]
===
[{"type":"infer-type","name":"a"},{"type":"infer-type","name":"b"},{"type":"infer-type","name":"c"}]
- Expected
+ Received
[
{
- "name": "a",
- "type": "infer-type",
- },
- {
- "name": "b",
- "type": "infer-type",
- },
- {
- "name": "c",
- "type": "infer-type",
+ "name": null,
+ "type": "unknown",
},
]
❯ tests/lib/utils/ts-utils/index/get-component-emits.js:120:14
|
|
Lint:
eslint.config.mjs#L82
Unexpected 'todo' comment: 'TODO: enable when all rules have...'
|