Skip to content

Commit

Permalink
chore(cypress-1): further removal of cypress and any config related (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew2564 authored Jul 19, 2024
1 parent 89691a4 commit 1b55ad4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 37 deletions.
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"]
}

0 comments on commit 1b55ad4

Please sign in to comment.