-
Notifications
You must be signed in to change notification settings - Fork 6.8k
tests: remove unsupported TS integration tests #20359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Note: CI is failing due to failures in |
With this change we remove TS integration tests for unsupported TS versions. Angular version 10 doesn't TS versions older than TS 3.9.
The current version of system.js used doesn't seem to handle the `exports` correctly for TypeScript 3.9 output and causes `Cannot find variable: exports` during runtime. With this change we change the tests module to use UMD.
Since we are installing multiple TS versions https://github.com/angular/components/blob/1f6b90c0a515397526d7c6b35f047827bfaa8652/package.json#L170-L173 yarn will link the last tsc binary which may not be the TSC version we want to use to build/test this reproduction. Currently with the following package.json packages ``` "typescript": "3.9.5", "typescript-3.6": "npm:typescript@~3.6.4", "typescript-3.7": "npm:typescript@~3.7.0", "typescript-3.8": "npm:typescript@~3.8.0", ``` If we run `npx tsc --v` the output will be `Version 3.8.3` as opposed to `3.9.5`
* test: remove unsupported TS integration tests With this change we remove TS integration tests for unsupported TS versions. Angular version 10 doesn't TS versions older than TS 3.9. * build: update to TypeScript 3.9.7 * build: update tests to use UMD module format The current version of system.js used doesn't seem to handle the `exports` correctly for TypeScript 3.9 output and causes `Cannot find variable: exports` during runtime. With this change we change the tests module to use UMD. * build: point to typescript node_modules folder instead of `.bin` Since we are installing multiple TS versions https://github.com/angular/components/blob/1f6b90c0a515397526d7c6b35f047827bfaa8652/package.json#L170-L173 yarn will link the last tsc binary which may not be the TSC version we want to use to build/test this reproduction. Currently with the following package.json packages ``` "typescript": "3.9.5", "typescript-3.6": "npm:typescript@~3.6.4", "typescript-3.7": "npm:typescript@~3.7.0", "typescript-3.8": "npm:typescript@~3.8.0", ``` If we run `npx tsc --v` the output will be `Version 3.8.3` as opposed to `3.9.5` (cherry picked from commit bbf75f3)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
build: point to typescript node_modules folder instead of
.bin
Since we are installing multiple TS versions
components/package.json
Lines 170 to 173 in 1f6b90c
Currently with the following package.json packages
If we run
npx tsc --v
the output will beVersion 3.8.3
as opposed to3.9.5
build: update tests to use UMD module format
The current version of system.js used doesn't seem to handle the
exports
correctly for TypeScript 3.9 output and causesCannot find variable: exports
during runtime.With this change we change the tests module to use UMD.
build: update to TypeScript 3.9.7
test: remove unsupported TS integration tests
With this change we remove TS integration tests for unsupported TS versions.
Angular version 10 doesn't TS versions older than TS 3.9.