Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Feature request: Optioanlly disable testing against @next #288

Open
crutchcorn opened this issue May 6, 2020 · 1 comment
Open

Feature request: Optioanlly disable testing against @next #288

crutchcorn opened this issue May 6, 2020 · 1 comment

Comments

@crutchcorn
Copy link

I'm currently working on adding dtslint support to @plopjs. However, I'm getting errors from upstream lib issues:

Error: Errors in [email protected] for external dependencies:
../../../../.dts/typescript-installs/4.0/node_modules/typescript/lib/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'.
../node_modules/@types/node/index.d.ts(179,11): error TS2300: Duplicate identifier 'IteratorResult'.

    at C:\Users\crutchcorn\git\Plop\node-plop\node_modules\dtslint\bin\index.js:196:19
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\crutchcorn\git\Plop\node-plop\node_modules\dtslint\bin\index.js:6:58)

This isn't the first time that testing against next has broken typings for me. For some projects, I want to enable testing against next, while other projects I'd like to disable that functionality altogether. I understand that I can restrict to a local TS version, but then I'm limiting testing against only one version of TS, which isn't ideal when trying to test against a myriad of versions to ensure capability.

I'd love for an option to disable testing unstable releases of TS while remaining with the power to test the range of stable releases

@crutchcorn crutchcorn changed the title Feature request: Disable testing against @next Feature request: Optioanlly disable testing against @next May 6, 2020
badeball added a commit to badeball/cypress-cucumber-preprocessor-deprecated that referenced this issue Jun 2, 2021
There's an issue with either our types or the unreleased 4.4.0 and
there's currently no option to disable testing against "next" [1].

[1] microsoft/dtslint#288
badeball added a commit to badeball/cypress-cucumber-preprocessor-deprecated that referenced this issue Jun 2, 2021
There's an issue with either our types or the unreleased 4.4.0 and
there's currently no option to disable testing against "next" [1].

[1] microsoft/dtslint#288
badeball added a commit to badeball/cypress-cucumber-preprocessor-deprecated that referenced this issue Jun 28, 2021
Dtslint doesn't support not running against "next" [1], which means that
I can either temporarily remove type testing before publishing or fix
the method. The former would mean that the published version wouldn't
correspond to the tagged source code, which I don't enjoy.

[1] microsoft/dtslint#288
@IanVS
Copy link

IanVS commented Feb 16, 2022

I've also noticed that even though right now it says it's testing Typescript 4.5, it's actually installing and testing 4.7.0-dev.20220216, which is super confusing, if nothing else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants