Skip to content

Commit d17479b

Browse files
authored
Merge branch 'develop' into lmiller/add-runtime-check-for-ct-deps
2 parents 0e9e9b0 + 964ac37 commit d17479b

File tree

99 files changed

+14264
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+14264
-450
lines changed

browser-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"chrome:beta": "104.0.5112.57",
2+
"chrome:beta": "104.0.5112.65",
33
"chrome:stable": "103.0.5060.134"
44
}

circle.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,16 @@ commands:
873873
# Ensure we're installing the node-version for the cloned repo
874874
command: |
875875
if [[ -f .node-version ]]; then
876-
curl -L https://raw.githubusercontent.com/cypress-io/cypress/<< pipeline.git.branch >>/scripts/ensure-node.sh --output ci-ensure-node.sh
876+
branch="<< pipeline.git.branch >>"
877+
878+
externalBranchPattern='^pull\/[0-9]+'
879+
if [[ $branch =~ $externalBranchPattern ]]; then
880+
# We are unable to curl from the external PR branch location
881+
# so we fall back to develop
882+
branch="develop"
883+
fi
884+
885+
curl -L https://raw.githubusercontent.com/cypress-io/cypress/$branch/scripts/ensure-node.sh --output ci-ensure-node.sh
877886
else
878887
# if no .node-version file exists, we no-op the node script and use the global yarn
879888
echo '' > ci-ensure-node.sh

cli/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@
107107
"vue",
108108
"react",
109109
"vue2",
110-
"react18",
111-
"angular"
110+
"react18"
112111
],
113112
"bin": {
114113
"cypress": "bin/cypress"
@@ -150,11 +149,6 @@
150149
"./mount-utils": {
151150
"require": "./mount-utils/dist/index.js",
152151
"types": "./mount-utils/dist/index.d.ts"
153-
},
154-
"./angular": {
155-
"import": "./angular/dist/index.js",
156-
"require": "./angular/dist/index.js",
157-
"types": "./angular/dist/index.d.ts"
158152
}
159153
},
160154
"workspaces": {

cli/scripts/post-build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const npmModulesToCopy = [
1212
'react18',
1313
'vue',
1414
'vue2',
15-
'angular',
1615
]
1716

1817
npmModulesToCopy.forEach((folder) => {

cli/types/cypress.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,7 @@ declare namespace Cypress {
30443044

30453045
type DevServerConfigOptions = {
30463046
bundler: 'webpack'
3047-
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next' | 'angular'
3047+
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next'
30483048
webpackConfig?: PickConfigOpt<'webpackConfig'>
30493049
} | {
30503050
bundler: 'vite'

npm/angular/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"scripts": {
77
"prebuild": "rimraf dist",
88
"build": "tsc || echo 'built, with type errors'",
9-
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
109
"build-prod": "yarn build",
1110
"check-ts": "tsc --noEmit"
1211
},

npm/angular/src/mount.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,17 @@ export function mount<T extends object> (
212212
const fixture = setupFixture(component, testBed, autoDetectChanges)
213213
const componentInstance = setupComponent(config, fixture)
214214

215+
const mountResponse: MountResponse<T> = {
216+
testBed,
217+
fixture,
218+
component: componentInstance,
219+
}
220+
215221
Cypress.log({
216222
name: 'mount',
217223
message: component.name,
224+
consoleProps: () => ({ result: mountResponse }),
218225
})
219226

220-
return cy.wrap({
221-
fixture,
222-
testBed,
223-
component: componentInstance,
224-
}, { log: false })
227+
return cy.wrap(mountResponse, { log: false })
225228
}

npm/webpack-dev-server/cypress/e2e/angular.cy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ for (const project of WEBPACK_REACT) {
1212
continue
1313
}
1414

15-
describe(`Working with ${project}`, () => {
15+
// TODO: revert once Angular is slated for release
16+
describe.skip(`Working with ${project}`, () => {
1617
beforeEach(() => {
1718
cy.scaffoldProject(project)
1819
cy.openProject(project)

npm/webpack-dev-server/src/devServer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { nuxtHandler } from './helpers/nuxtHandler'
1212
import { createReactAppHandler } from './helpers/createReactAppHandler'
1313
import { nextHandler } from './helpers/nextHandler'
1414
import { sourceDefaultWebpackDependencies, SourceRelativeWebpackResult } from './helpers/sourceRelativeWebpackModules'
15-
import { angularHandler } from './helpers/angularHandler'
1615

1716
const debug = debugLib('cypress:webpack-dev-server:devServer')
1817

@@ -26,7 +25,7 @@ export type WebpackDevServerConfig = {
2625
webpackConfig?: unknown // Derived from the user's webpack
2726
}
2827

29-
export const ALL_FRAMEWORKS = ['create-react-app', 'nuxt', 'react', 'vue-cli', 'next', 'vue', 'angular'] as const
28+
export const ALL_FRAMEWORKS = ['create-react-app', 'nuxt', 'react', 'vue-cli', 'next', 'vue'] as const
3029

3130
/**
3231
* @internal
@@ -116,8 +115,9 @@ async function getPreset (devServerConfig: WebpackDevServerConfig): Promise<Opti
116115
case 'next':
117116
return await nextHandler(devServerConfig)
118117

119-
case 'angular':
120-
return await angularHandler(devServerConfig)
118+
// TODO: revert once Angular is slated for release
119+
// case 'angular':
120+
// return await angularHandler(devServerConfig)
121121

122122
case 'react':
123123
case 'vue':

npm/webpack-dev-server/src/helpers/angularHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ export function getAngularBuildOptions (projectConfig: AngularJsonProjectConfig,
8585
assets: [],
8686
styles: [],
8787
scripts: [],
88-
budgets: [],
8988
fileReplacements: [],
90-
outputHashing: 'all',
9189
inlineStyleLanguage: 'css',
9290
stylePreprocessorOptions: { includePaths: [] },
9391
resourcesOutputPath: undefined,
@@ -121,6 +119,8 @@ export function getAngularBuildOptions (projectConfig: AngularJsonProjectConfig,
121119
...projectConfig.architect.build.configurations?.development || {},
122120
tsConfig,
123121
aot: false,
122+
outputHashing: 'none',
123+
budgets: undefined,
124124
}
125125
}
126126

0 commit comments

Comments
 (0)