Skip to content

Commit

Permalink
feat(angular): angular mount (#22858)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
  • Loading branch information
jordanpowell88 and ZachJW34 committed Jul 26, 2022
1 parent b62c949 commit 4131b1f
Show file tree
Hide file tree
Showing 151 changed files with 765 additions and 5,939 deletions.
8 changes: 0 additions & 8 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1791,14 +1791,6 @@ jobs:
- run:
name: Build
command: yarn workspace @cypress/angular build
- run:
name: Run tests
command: yarn test-ci
working_directory: npm/angular
- store_test_results:
path: npm/angular/test_results
- store_artifacts:
path: npm/angular/test_results
- store-npm-logs

npm-react:
Expand Down
3 changes: 2 additions & 1 deletion cli/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ types/minimatch
types/sinon
types/sinon-chai
# copied from net-stubbing package on build
types/net-stubbing.ts
types/net-stubbing.d.ts
# ignore CLI output build folder
build

Expand All @@ -19,3 +19,4 @@ vue
vue2
react*
mount-utils
angular
9 changes: 7 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
"index.js",
"index.mjs",
"types/**/*.d.ts",
"types/net-stubbing.ts",
"mount-utils",
"vue",
"react",
"vue2",
"react18"
"react18",
"angular"
],
"bin": {
"cypress": "bin/cypress"
Expand Down Expand Up @@ -150,6 +150,11 @@
"./mount-utils": {
"require": "./mount-utils/dist/index.js",
"types": "./mount-utils/dist/index.d.ts"
},
"./angular": {
"import": "./angular/dist/index.js",
"require": "./angular/dist/index.js",
"types": "./angular/dist/index.d.ts"
}
},
"workspaces": {
Expand Down
1 change: 1 addition & 0 deletions cli/scripts/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const npmModulesToCopy = [
'react18',
'vue',
'vue2',
'angular',
]

npmModulesToCopy.forEach((folder) => {
Expand Down
2 changes: 1 addition & 1 deletion cli/scripts/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ shell.sed('-i', 'from \'sinon\';', 'from \'../sinon\';', sinonChaiFilename)

// copy experimental network stubbing type definitions
// so users can import: `import 'cypress/types/net-stubbing'`
fs.copySync(resolvePkg('@packages/net-stubbing/lib/external-types.ts'), 'types/net-stubbing.ts')
fs.copySync(resolvePkg('@packages/net-stubbing/lib/external-types.ts'), 'types/net-stubbing.d.ts')

// https://github.com/cypress-io/cypress/issues/18069
// To avoid type clashes, some files should be commented out entirely by patch-package
Expand Down
2 changes: 1 addition & 1 deletion cli/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// hmm, how to load it better?
/// <reference path="./cypress-npm-api.d.ts" />

/// <reference path="./net-stubbing.ts" />
/// <reference path="./net-stubbing.d.ts" />
/// <reference path="./cypress.d.ts" />
/// <reference path="./cypress-global-vars.d.ts" />
/// <reference path="./cypress-type-helpers.d.ts" />
Expand Down
5 changes: 4 additions & 1 deletion cli/types/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"./mocha/*",
"./minimatch/*",
"./sinon/**/*",
"./sinon-chai/*"
"./sinon-chai/*",
// Copied from net-stubbing and renamed to a declaration file. Since it's not originally
// a declaration file, we need to exclude it from linting.
"./net-stubbing.d.ts"
]
}
}
13 changes: 0 additions & 13 deletions npm/angular/.editorconfig

This file was deleted.

34 changes: 4 additions & 30 deletions npm/angular/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,43 +1,17 @@
{
"plugins": [
"cypress",
"@cypress/dev",
"@angular-eslint/eslint-plugin"
"cypress"
],
"extends": [
"plugin:@cypress/dev/general",
"plugin:@cypress/dev/tests"
],
"parser": "@typescript-eslint/parser",
"env": {
"cypress/globals": true
},
"root": true,
"globals": {
"jest": "readonly"
},
"rules": {
"no-console": "off",
"mocha/no-global-tests": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "off",
"no-unused-vars": "off",
"no-console": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"overrides": [
{
"files": [
"lib/*",
"src/*"
]
},
{
"files": [
"**/*.json"
],
"rules": {
"quotes": "off",
"comma-dangle": "off"
}
}
]
}
}
53 changes: 0 additions & 53 deletions npm/angular/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions npm/angular/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
examples
src
cypress
6 changes: 6 additions & 0 deletions npm/angular/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
...require('../../.releaserc.base'),
branches: [
{ name: 'master', channel: 'latest' },
],
}
File renamed without changes.

5 comments on commit 4131b1f

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4131b1f Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-x64/develop-4131b1fa8482ae08113bef337965baa1ac12f66c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4131b1f Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-arm64/develop-4131b1fa8482ae08113bef337965baa1ac12f66c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4131b1f Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-arm64/develop-4131b1fa8482ae08113bef337965baa1ac12f66c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4131b1f Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-x64/develop-4131b1fa8482ae08113bef337965baa1ac12f66c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4131b1f Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/win32-x64/develop-4131b1fa8482ae08113bef337965baa1ac12f66c/cypress.tgz

Please sign in to comment.