Skip to content
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

chore(cypress-1): further removal of cypress and any config related #1510

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ jest.config.js
protractor.conf.js
/src/app/api/*
/mock-api
/cypress
/.vscode
/.storybook
/.husky
/.github
setenv.ts
setup-jest.ts
cypress.config.ts
jest-global-mocks.ts
environment.deploy.ts
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ testem.log
.DS_Store
Thumbs.db

# Cypress
cypress.env.json
cypress/videos
cypress/screenshots
runner-results
multi-reporter-config.json
cypress/parallel-weights.json

report.json
# Sentry Config File
.sentryclirc
14 changes: 0 additions & 14 deletions cypress.config.ts

This file was deleted.

11 changes: 0 additions & 11 deletions setenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ require('dotenv').config({
const environment = argv.environment;
const isProduction = environment === 'prod';
const targetPath = isProduction ? `./src/environments/environment.prod.ts` : `./src/environments/environment.deploy.ts`;
const cypressPath = 'cypress.env.json';

// we have access to our environment variables
// in the process.env object thanks to dotenv
Expand All @@ -34,20 +33,10 @@ const environmentFileContent = `export const environment = {
};
`;

const cypressCredsFile = JSON.stringify({
aad_username: process.env['AAD_USER'],
aad_password: process.env['AAD_PASSWORD'],
vtm_api_uri: process.env['VTM_API_URI']
});

const filesToWrite = [
{
path: targetPath,
contents: environmentFileContent
},
{
path: cypressPath,
contents: cypressCredsFile
}
];

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sonar.sourceEncoding=UTF-8
# Path is relative to the sonar-project.properties file. Replace “\” by “/” on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=src/app
sonar.exclusions=test-config/**, cypress/**, dist/**, .nyc_output/**, .scannerwork/**, coverage/**, **/*.module.ts, **/*.routes.ts, **/*.state.ts, **/utils.ts, src/app/api/**
sonar.exclusions=test-config/**, dist/**, .nyc_output/**, .scannerwork/**, coverage/**, **/*.module.ts, **/*.routes.ts, **/*.state.ts, **/utils.ts, src/app/api/**
sonar.test.inclusions=**/*.spec.ts
sonar.cpd.exclusions=src/app/forms/templates/**, src/app/api/**
sonar.tslint.reportPaths=.reports/lint_issues.json
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"strictInputAccessModifiers": true,
"strictTemplates": true
},
"exclude": ["cypress.config.ts", "cypress", "node_modules"]
"exclude": ["node_modules"]
}
Loading