mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Switches the integration tests form Puppeteer/webdriver-manager to the Bazel-managed Chromium/Chromedriver. This is now possible with the new integration test rule for which we can consult the `dev-infra/bazel/browsers` toolchain and setup environment variables. This has been configured already in a previous commit. This commit also includes some additional small cleanups necessary for the new integration test rule: * The `test.sh` scripts have been renamed as they would conflict with the `test.sh` scripts generated by the integration test rule. Previously this was not an issue because tests were declared at a higher-level. As mentioned though this has other downsides and it is trivial to rename the file. * Related to the point above, since tests are now declared witin the actual test folder (for perf e.g.), `package.json` files setting `"type": "module"` will accidentally cause the `nodejs_test`-generated files to be considered ESM. This is not correct and likely needs to be fixed upstream in `rules_nodejs` where explicit `.cjs` extensions should be used. This is only happening **once** in the `injectable-def` test so it is acceptable doing that for now. PR Close #44238
39 lines
1.8 KiB
JSON
39 lines
1.8 KiB
JSON
{
|
|
"name": "angular-integration",
|
|
"version": "0.0.0",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@angular/common": "file:../../dist/packages-dist/common",
|
|
"@angular/compiler": "file:../../dist/packages-dist/compiler",
|
|
"@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli",
|
|
"@angular/core": "file:../../dist/packages-dist/core",
|
|
"@angular/elements": "file:../../dist/packages-dist/elements",
|
|
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
|
|
"rxjs": "file:../../node_modules/rxjs",
|
|
"typescript": "file:../../node_modules/typescript",
|
|
"tslib": "file:../../node_modules/tslib",
|
|
"zone.js": "file:../../dist/zone.js-dist/archive/zone.js.tgz"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "file:../../node_modules/@babel/core",
|
|
"@rollup/plugin-babel": "file:../../node_modules/@rollup/plugin-babel",
|
|
"@rollup/plugin-node-resolve": "file:../../node_modules/@rollup/plugin-node-resolve",
|
|
"@types/jasmine": "file:../../node_modules/@types/jasmine",
|
|
"@types/jasminewd2": "file:../../node_modules/@types/jasminewd2",
|
|
"concurrently": "3.4.0",
|
|
"google-closure-compiler": "file:../../node_modules/google-closure-compiler",
|
|
"lite-server": "2.2.2",
|
|
"protractor": "file:../../node_modules/protractor",
|
|
"rollup": "file:../../node_modules/rollup",
|
|
"tsickle": "file:../../node_modules/tsickle"
|
|
},
|
|
"scripts": {
|
|
"closure": "google-closure-compiler --flagfile closure.conf",
|
|
"build": "yarn ngc && yarn rollup -c rollup.config.mjs && yarn closure",
|
|
"test": "yarn build && concurrently \"yarn run serve\" \"yarn run protractor\" --kill-others --success first",
|
|
"serve": "lite-server -c e2e/browser.config.json",
|
|
"preprotractor": "tsc -p e2e",
|
|
"protractor": "protractor e2e/protractor.config.js"
|
|
},
|
|
"private": true
|
|
}
|